在 HTML 页面中包含一个按钮控件 mybutton,如果要实现点击该按钮时调用已定义的Javascript 函数 compute,要编写的 HTML 代码是( )

发布于 2021-02-15 16:38:03
【单选题】
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=”function compute()”value=”计算”>
D <input name=”mybutton” type=”button” onClick=”compute()”value=”计算”>

查看更多

关注者
0
被浏览
97
  • 体验AI问答!更聪明、超智能!
  • 一款基于GPT的超级AI助手,可以对话、创作、写文案!
1 个回答

撰写答案

请登录后再发布答案,点击登录

发布
问题

手机
浏览

扫码手机浏览

分享
好友

在线
客服