对于代码:分析正确的是()A、Onclick表示鼠标移上去的事件B、这个代码运行时将报错C、点击这个按扭时弹出提示框,并显示“你好”D、必须把alert改为window.alert才能正常运行

对于代码:分析正确的是()

  • A、Onclick表示鼠标移上去的事件
  • B、这个代码运行时将报错
  • C、点击这个按扭时弹出提示框,并显示“你好”
  • D、必须把alert改为window.alert才能正常运行

相关考题:

声明一个对象,给它加上name属性和show方法显示其name值,以下代码中正确 的是( )。 Avarobj = [name:"zhangsan",show:function(){alert(name);}];Bvarobj = {name:"zhangsan",show:”alert()”};Cvarobj = {name:"zhangsan",show:function(){alert(name);}};Dvarobj = {name:"zhangsan",show:function(){alert();}};

阅读以下关于网页制作和网页编程的说明,回答问题1至问题3。[说明1]某公司制作了一个电子商务网站,图2-1是网站搜索部分的页面,用户至少需要填写关键字或者类别中的一项,才能够进行搜索,否则弹出提示框。下面给出搜索按钮激发过程的代码。<HTML>< (1) ><TITLE>找东东网---找我喜欢! </TITLE><SCRIPT. LANGUAGE="VBScript" ><!--Sub Search_OnClick......省略判断部分代码(2)--></SCRIPT></HEAD><BODY><FORM><INPUT NAME=" Search" TYPE="BUTTON" VALUE=" (3) "></FORM. >......省略部分代码</BODY></HTML>[说明2]图2-2是位于发布目录c:\addq下member.asp文件运行后的界面。注册用户可以通过它登录到网站,如果是未注册用户,可以单击“立即注册”打开位于本机目录c:\addq下的register.asp文件进行注册。下面给出用户登录的部分代码。……省略部分代码<TR><TD class=altbgl width="13%"><INPUT onclick=document.login.username.focus(); type=radio CHECKED value=username name=loginfield> (4) <BR><INPUT nclick=document.login.username.focus();type=radio value=uid name=loginfield>UID:</TD><TD class=alt, bg2><SPAN class=smalltxt><INPUT tabIndex=2 maxLength=40size=25 name=username><A href=" (5) ">立即注册</A></SPAN></TD></TR><TR><TD class=altbgl>密码: </TD><TD class=altbg2><SPAN class=smalltxt><INPUT tabIndex=3 type=passwordsize=25 name=password>< (6) ="http://www.zddq.com/member.asp?action=lostpasswd">忘记密码</A></SPAN> </TD></TR>……省略部分代码1.<!-- -->标记对的作用是什么?2.请将上述HTML代码中空缺的部分填写在答题纸的相应位置。

增加表单的隐藏域的HTML代码是() A.input type=submit B.input type=iamgeC.input type=textD. input type=hide

vara=1;functiontest(){a++;alert(a);vara=1;alert(a);}test();分析上面JavaScript代码段,输出结果错误的是()。A、NaN1B、1NaNC、11D、NaNNaN

在HTML页面中,定义了如下的Javascript函数,则正确调用该函数的HTML代码是()  function compute(op){  alert(op);  }A、input name=”a” type=”button” onclick=”compute(this.value)” value=”+” B、input name=”b” type=”button” onclick=”compute(‘-‘)” value=”-” C、input name=”c” type=”button” onclick=”compute(“*”)” value=”*” D、input name=”d” type=”button” onclick=”compute(/ )” value=”/”

有一段如下代码,输出结果那个选项正确varname=123;varage=22;varnameNew="字符操作测试"+name+ageprintln(name+age+"你好")println("你好"+name+age)println(nameNew)()A、145你好你好12322字符操作测试12322B、12322你好你好12322字符操作测试12322C、145你好你好145字符操作测试12322D、145你好你好145字符操作测试145

以下哪段代码不能正确创建函数show()?()A、function show(text){ alert(text); }B、var showFun = function show(text){ alert(text); }C、var showFun = function(text){ alert(text); }D、var showFun =new function("text" , "alert(text)"};

在HTML页面中包含一个按钮控件mybutton,如果要实现点击该按钮时调用已定义的Javascript函数compute,要编写的HTML代码是()。A、〈input name=“mybutton” type=“button” onBlur=“compute()” value=“计算”〉B、〈input name=“mybutton” type=“button” onFocus=“compute()” value=“计算”〉C、〈input name=“mybutton” type=“button” onClick=“functioncompute()” value=“计算”〉D、〈input name=“mybutton” type=“button” onClick=“compute()” value=“计算”〉

以下代码可以获取出页面中所有单选按钮的是()。A、$("input:radio")B、$(":radio")C、$(":button")D、$("input[type=’radio’]")

增加表单的单选框的HTML代码是()A、input type=submitB、input type=iamgeC、input type=radioD、input type=checkbox

增加表单的图像域的HTML代码是()A、input type=submitB、input type=iamge C、input type=radio D、input type=checkbox

增加表单的复选框的HTML代码是()A、input type=submit B、input type=iamge C、input type=text D、input type=checkbox

下面那个不是复选框的响应事件()A、onfocus:得到焦点时执行的代码。B、onblur:失去焦点是时执行的代码。C、onclick:单击该文本框时执行的代码。D、onselect:选择内容时执行的代码。

表单元素重置按钮的代码为()。A、<inputtype="submit"name="..."value="...">B、<inputtype="reset"name="..."value="...">C、<inputtype="button"name="..."value="..."onClick="...">D、<inputtype="radio"name="..."value="...">

要求用JavaScript实现下面的功能:在一个文本框中内容发生改变后,单击页面的其他部分将弹出一个消息框显示文本框中的内容,下面语句正确的是()。A、〈input type="text" onClick="alert(this.value)"〉B、〈input type="text" onChange="alert(this.value)"〉C、〈input type="text" onChange="alert(text.value)"〉D、〈input type="text" onClick="alert(value)"〉

对于代码分析正确的是()。A、onclick表示鼠标移上去的事件B、这个代码运行时将报错C、点击这个按钮时弹出警告框,并显示"你好"D、必须把alert改为window.alert才能正常运行

执行下面的代码打印出的结果,正确的是:alert(true+1);alert("3"+0);alert(5+"12");alert(undefined+11):()A、2,30,512,NaNB、NaN,30,17,undefinedC、1,3,17,NaND、NaN,30,512,11

当单击段落元素时显示它的文本内容,以下哪句可以实现该功能?()A、$("p").on("click",function(){alert($(this).text())})B、$("p").on("onclick",function(){alert($(this).text())})C、$("p").on("click",function(){alert(this.text())})D、以上都不正确

增加表单的多行文本域的HTML代码是()。A、input type=submit/inputB、textarea name="textarea"/textareaC、input type=radio/inputD、input type=checkbox/input

增加表单的文字段的HTML代码是()A、input type=submit B、input type=iamge C、input type=text D、input type=hide

表单元素一般按钮的代码为()。A、<inputtype="submit"name="..."value="...">B、<inputtype="reset"name="..."value="...">C、<inputtype="button"name="..."value="..."onClick="...">D、<inputtype="radio"name="..."value="...">

单选题要求用JavaScript实现下面的功能:在一个文本框中内容发生改变后,单击页面的其他部分将弹出一个消息框显示文本框中的内容,下面语句正确的是()。A〈input type=text onClick=alert(this.value)〉B〈input type=text onChange=alert(this.value)〉C〈input type=text onChange=alert(text.value)〉D〈input type=text onClick=alert(value)〉

单选题在HTML页面中包含一个按钮控件mybutton,如果要实现点击该按钮时调用已定义的Javascript函数compute,要编写的HTML代码是()。A〈input name=“mybutton” type=“button” onBlur=“compute()” value=“计算”〉B〈input name=“mybutton” type=“button” onFocus=“compute()” value=“计算”〉C〈input name=“mybutton” type=“button” onClick=“functioncompute()” value=“计算”〉D〈input name=“mybutton” type=“button” onClick=“compute()” value=“计算”〉

单选题对于代码分析正确的是()。Aonclick表示鼠标移上去的事件B这个代码运行时将报错C点击这个按钮时弹出警告框,并显示你好D必须把alert改为window.alert才能正常运行

单选题You are developing a Web page. The user types a credit card number into an input control named cc and clicks a button named submit. The submit button sends the credit card number to the server. A JavaScript library includes a CheckCreditCard function that returns a value of true if the credit card appears to be valid, based on its checksum. You need to ensure that the form cannot be used to submit invalid credit card numbers to the server. What should you do?()AConfigure the input control to run on the server. On the submit button, add a server-side OnClick handler that calls CheckCreditCard and rejects the form submission if the input is invalid.BOn the input control,add an onChange handler that calls CheckCreditCard and cancels the form submission when the input is invalid.CConfigure the input control and the submit button to run on the server. Add a submit_OnClick handler that calls CheckCreditCard and rejects the form submission if the input is invalid.DOn the form, add an onSubmit handler that calls CheckCreditCard and cancels the form submission if the input is invalid.

多选题以下代码可以获取出页面中所有单选按钮的是()。A$(input:radio)B$(:radio)C$(:button)D$(input[type=’radio’])

单选题当单击段落元素时显示它的文本内容,以下哪句可以实现该功能?()A$(p).on(click,function(){alert($(this).text())})B$(p).on(onclick,function(){alert($(this).text())})C$(p).on(click,function(){alert(this.text())})D以上都不正确