当前位置:百科知识 > 工学2

问题描述:

[单选] 在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=“计算”〉
参考答案:查看
答案解析:
☆收藏

随机题目