niusouti.com

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

题目

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

A.<input name=”mybutton” type=”button” onClick=”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=”计算”>


相似考题
参考答案和解析
计算 ”>
更多“在HTML页面中包含一个按钮控件mybutton,如果要实现点击该按钮时调用已定义的Javascript函数compute,要编写的HTML代码是()。”相关问题
  • 第1题:

    HTML中新增的output元素用于( )

    A.在页面中输出指定信息

    B.在页面中添加图形容器

    C.定义一个数据集

    D.在页面中添加命令按钮


    参考答案:A

  • 第2题:

    如果服务器上的所有html页面都已经被挂马,以下哪些方法可以快速清除恶意代码()。

    • A、使用专门软件清除html页面中的恶意代码
    • B、使用备份还原html页面
    • C、重新编写html页面
    • D、删除所有被修改过得html页面

    正确答案:A,B,D

  • 第3题:

    下列关于JavaScript的描述,正确的是()

    • A、将JavaScript嵌入HTML页面的时候,必须使用<script>标签
    • B、在网页编写时可以把JavaScript语句写在一个文件中,同时被多个页面调用,这个文件的扩展名是jpg
    • C、JavaScript在网页中执行时需要先编译成可执行文件
    • D、JavaScript是一种面向对象的网页脚本语言,但只适合在Windowsxp系统中运行

    正确答案:A

  • 第4题:

    在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=“计算”〉

    正确答案:D

  • 第5题:

    在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=”计算”>

    正确答案:D

  • 第6题:

    下面关于Html控件和Web控件说法错误的是()

    • A、所有的Web控件最终在浏览器端都会生成为相对应的Html控件
    • B、Web控件让我们可以使用控件+事件的开发方式
    • C、运行时,页面中如果包含Web控件,需要考虑到浏览器的兼容性
    • D、Html控件比Web控件的性能要高一些

    正确答案:C

  • 第7题:

    在Dreamweaver中,查看HTML的代码,下面哪种方法是正确的?()

    • A、在HTML纯文本编辑模式下可以查看HTML代码
    • B、在HTML纯文本编辑模式下不能查看HTML代码
    • C、在页面模式下可以查看HTML代码
    • D、在HTML纯文本+页面模式下不能查看HTML代码

    正确答案:A

  • 第8题:

    在JavaScript中,document对象的()方法用于向document对象所对应的HTML文档页面写入内容,()属性为document对象所对应的HTML文档定义标题。


    正确答案:write(),title

  • 第9题:

    在HTML中,点击图片”previous.gif”上的超级链接后页面将加载历史列表中的上一个URL页面。代码如下所示,应在下划线处填入() < img src=”previous.gif” width=”67” height=”21”>

    • A、“javascript:history.go(-1)”; 
    • B、“history.go(1)” 
    • C、“history.go(-1)”            
    • D、“javascript:history.go(1)”

    正确答案:A

  • 第10题:

    HTML标记描述正确的有() 

    • A、<html:button>标记显示一个按钮控件 
    • B、<html:cancel>标记显示一个取消按钮 
    • C、<html:submit>标记显示一个提交按钮 
    • D、<html:select>标记显示HTML复选框按钮

    正确答案:A,B,C

  • 第11题:

    单选题
    在HTML页面上编写Javascript代码时,应编写在()标签中间。
    A

    〈javascript〉和〈/javascript〉

    B

    〈script〉和〈/script〉

    C

    〈head〉和〈/head〉

    D

    〈body〉和〈/body〉


    正确答案: D
    解析: 暂无解析

  • 第12题:

    单选题
    在网页中动态显示日期,恰当的做法是()
    A

    将具有日期显示功能的JavaScript代码嵌入html中

    B

    将具有日期显示功能的CSS代码嵌入html中

    C

    用html代码编写日期显示


    正确答案: A
    解析: 暂无解析

  • 第13题:

    在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=”/”>

    正确答案:A,B

  • 第14题:

    页面HTML代码中存在大段Javascript代码,影响搜索引擎对页面分析效率。下列哪项优化手段是错误的?()

    • A、将大段Javascript代码在源代码中使用外部调用
    • B、大段Javascript属于冗余代码,可直接删除
    • C、将大段Javascript代码移至HTML底部
    • D、分析Javascript属性后,再进行精简操作

    正确答案:D

  • 第15题:

    在一个JSP页面代码中一定没有的部分是()。

    • A、javascript代码
    • B、JSP指令
    • C、JSP动作
    • D、HTML代码

    正确答案:A

  • 第16题:

    下列选项中,()段HTML代码所表示的“返回”链接能够正确实现IE工具栏中“后退”按钮的功能。

    • A、<a href=”javascript:history.go(-1)”>返回</a> 
    • B、<a href=”javascript:location.back()”>返回</a> 
    • C、<a href=”javascript: location go(-1)”>返回</a> 
    • D、<a href=”javascript:history.back()”>返回</a>

    正确答案:A,D

  • 第17题:

    若页面中包含验证控件,可设置按钮的属性(),使得单击该 按钮后不会引发验证过程。


    正确答案:CausesValidation="false"

  • 第18题:

    在网页中动态显示日期,恰当的做法是()。

    • A、将具有日期显示功能的JavaScript代码嵌入html中
    • B、将具有日期显示功能的CSS代码嵌入html中
    • C、用html代码编写日期显示
    • D、将日期直接嵌入html中

    正确答案:A

  • 第19题:

    在网页中动态显示日期,恰当的做法是()

    • A、将具有日期显示功能的JavaScript代码嵌入html中
    • B、将具有日期显示功能的CSS代码嵌入html中
    • C、用html代码编写日期显示

    正确答案:A

  • 第20题:

    设表单frmA包含命令按钮组cmgB,cmgB中包含命令按钮cmdC和cmdD,在cmdD的Click事件代码中要调用cmdC的Click事件代码,则下列调用中错误的是()。

    • A、Thisform.cmgB.cmdC.Click
    • B、This.Parent.cmdC.Click
    • C、This.cmgB.cmdC.Click
    • D、This.Parent.Parent.cmgB.cmdC.Click

    正确答案:C

  • 第21题:

    在HTML页面上编写Javascript代码时,应编写在()标签中间。

    • A、<javascript>和</javascript>  
    • B、<script>和</script> 
    • C、<head>和</head>             
    • D、<body>和</body>

    正确答案:B

  • 第22题:

    多选题
    HTML标记描述正确的有()
    A

    <html:button>标记显示一个按钮控件

    B

    <html:cancel>标记显示一个取消按钮

    C

    <html:submit>标记显示一个提交按钮

    D

    <html:select>标记显示HTML复选框按钮


    正确答案: B,C
    解析: 暂无解析

  • 第23题:

    单选题
    在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
    解析: 暂无解析

  • 第24题:

    单选题
    在网页中动态显示日期,恰当的做法是()。
    A

    将具有日期显示功能的JavaScript代码嵌入html中

    B

    将具有日期显示功能的CSS代码嵌入html中

    C

    用html代码编写日期显示

    D

    将日期直接嵌入html中


    正确答案: C
    解析: 暂无解析