对于代码:<input onclick="alert('你好')" type="button" value="点一下" >分析正确的是()
A、Onclick表示鼠标移上去的事件
B、这个代码运行时将报错
C、点击这个按扭时弹出提示框,并显示“你好”
D、必须把alert改为window.alert才能正常运行
A、Onclick表示鼠标移上去的事件
B、这个代码运行时将报错
C、点击这个按扭时弹出提示框,并显示“你好”
D、必须把alert改为window.alert才能正常运行
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 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、onfocus:得到焦点时执行的代码。 B、onblur:失去焦点是时执行的代码。 C、onclick:单击该文本框时执行的代码。 D、onselect:选择内容时执行的代码。
A、A.<input type=submit></input> B、B.<textarea name="textarea"></textarea> C、C.<input type=radio></input> D、D.<input type=checkbox></input>
A、A.当选中“上海”时,弹出“你选择了 select2”信息框 B、B.当选中“广州”时,弹出“你选择了广州”信息框 C、C.任何时候选中“北京”时,不弹出信息框 D、D.代码有错误,应该将“onChange”修改为“onClick”
A、Configure 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. B、On the input control,add an onChange handler that calls CheckCreditCard and cancels the form submission when the input is invalid. C、Configure 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. D、On the form, add an onSubmit handler that calls CheckCreditCard and cancels the form submission if the input is invalid.