欢迎来到PP题库网 PP题库官网
logo
全部科目 > 大学试题 > 计算机科学 > 超文本标记语言(HTML)

单项选择题

在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=”function compute()”value=”计算”> 
    D.<input name=”mybutton” type=”button” onClick=”compute()”value=”计算”>

点击查看答案

相关考题

微信小程序免费搜题
微信扫一扫,加关注免费搜题

微信扫一扫,加关注免费搜题