网友您好, 请在下方输入框内输入要搜索的题目:
题目内容
(请给出正确答案)
要求用JavaScript实现下面的功能:在一个文本框中内容发生改变后,单击页面的其他部分将弹出一个消息框显示文本框中的内容,下面语句正确的是()。
- 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)"〉
参考答案
更多 “要求用JavaScript实现下面的功能:在一个文本框中内容发生改变后,单击页面的其他部分将弹出一个消息框显示文本框中的内容,下面语句正确的是()。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)"〉” 相关考题
考题
详细阅读下面的FORM. 表单和PHP代码。当在表单里面的两个文本框分别输入’php’和’great’的时候,PHP代码将在页面中打印出什么?( )form. action=’index.php’ method=’post’input type=’text’ name=’element[]’input type=’text’ name=’element[]’input type=’submit’ value=’提交’/formIndex.php 代码如下:?phpif(A.什么都没有B.AarryC.一个提示D.phpgreat
考题
为index.html文件中的(2)~(6)处空缺选择正确答案。(2)~(6)备选答案: A.input type="reset"B.input type="submit"C.input type="text"D.TextareaE.option F.Select G.radio
考题
下图是HTML文件submit.html在IE中的部分显示效果。请完成下面submit.html中部分html代码。<form. action=/cgi-bin/post-query method=POST>您的姓名:<input type=text name=姓名><br>您的主页的网址:<input type= text name=网址value=http://><br>密码:<input type= (44) name=密码><br><input type=submit value=“发送”><input type= (45) value=“重设”></form>(44)A.textB.passwordC.passwdD.key
考题
● 下图是HTML文件submit.html在IE 中的部分显示效果。请完成下面submit.html中部分html代码。form. action=/cgi-bin/post-query method=POST您的姓名:input type=text name=姓名br您的主页的网址:input type=text name=网址 value=http://br密码:input type=(44) name=密码brinput type=submit value="发送"input type=(45) value="重设"/form(44)A. textB. passwordC. passwdD. key(45)A. sendB. resetC. restartD. replace
考题
在下列选项中,正确地产生文本区(textarea)的标记是( )。A.textareaB.input type=”textarea”C.input type=”textbox”D.input type=”text:”
考题
某 html 文档中有如下代码,则在浏览器中打开该文档时显示为( )。 form Listl: input type=text name=List1 / br / List2: input type=text name=List 2 / /formA.B.C.D.
考题
如果要在表单中创建一个普通文本框,下列标记中正确的是( )。A.input type=”text”SXB
如果要在表单中创建一个普通文本框,下列标记中正确的是( )。A.input type=”text”B.input type=”password”C.input type=”CheCkbox”D.input type=”radio”
考题
在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、INPUT TYPE=CHECKBOXB、INPUT TYPE=SUBMITC、INPUT TYPE=RESETD、INPUT TYPE=TEXT
考题
在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=“计算”〉
考题
增加表单的复选框的HTML代码是()A、input type=submit B、input type=iamge C、input type=text D、input type=checkbox
考题
属性选择器语法格式不正确的是()。A、input[type="text"]{background:red;}B、input{type="text"}{background:red;}C、input[type=password]{background:red;}D、input[type=’password’]{background:red;}
考题
要在表单中创建一个多行文本输入框,初始值为:这是一个多行文本框。下面语句正确的是()。A、〈TEXTAREA NAME=“text”VALUE=“这是一个多行文本框”〉〈/TEXTAREA〉B、〈INPUT TYPE=text VALUE=“这是一个多行文本框”NAME=“text1”〉C、〈INPUT TYPE=textarea NAME=“text1”VALUE=“这是一个多行文本”〉D、〈TEXTAREA NAME=“text”COLS=20 ROWS=5〉这是一个多行文本框〈/TEXTAREA〉
考题
下面哪种方法可以设置单行文本框的默认值为“在这里输入用户名”?()A、〈input type=’text’ name=’txtUserId’ value=’在这里输入用户名’〉B、〈input type=’text’ name=’txtUserId’〉在这里输入用户名〈/input〉C、〈textarea type=’memo’ name=’txtUserId’ value=’在这里输入用户名’〉D、〈textarea type=’memo’ name=’txtUserId’〉在这里输入用户名〈/textarea〉
考题
以下Form表单元素描述,()是错的。A、〈input type="password"〉表示密码框B、〈input type="reset"〉表示提交按钮C、〈select name="radio"〉表示单选框D、〈input type="text"〉表示文本框
考题
当单击段落元素时显示它的文本内容,以下哪句可以实现该功能?()A、$("p").on("click",function(){alert($(this).text())})B、$("p").on("onclick",function(){alert($(this).text())})C、$("p").on("click",function(){alert(this.text())})D、以上都不正确
考题
增加表单的文字段的HTML代码是()A、input type=submit B、input type=iamge C、input type=text D、input type=hide
考题
下列的HTML中哪个可以产生文本框?()A、input type="textfield" B、textinput type="text" C、input type="text" D、textfield
考题
单选题下面哪种方法可以设置单行文本框的默认值为“在这里输入用户名”?()A
〈input type=’text’ name=’txtUserId’ value=’在这里输入用户名’〉B
〈input type=’text’ name=’txtUserId’〉在这里输入用户名〈/input〉C
〈textarea type=’memo’ name=’txtUserId’ value=’在这里输入用户名’〉D
〈textarea type=’memo’ name=’txtUserId’〉在这里输入用户名〈/textarea〉
考题
单选题以下Form表单元素描述,()是错的。A
〈input type=password〉表示密码框B
〈input type=reset〉表示提交按钮C
〈select name=radio〉表示单选框D
〈input type=text〉表示文本框
考题
单选题在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
$(p).on(click,function(){alert($(this).text())})B
$(p).on(onclick,function(){alert($(this).text())})C
$(p).on(click,function(){alert(this.text())})D
以上都不正确
考题
单选题要求用JavaScript实现下面的功能:在一个文本框中内容发生改变后,单击页面的其他部分将弹出一个消息框显示文本框中的内容,下面语句正确的是()。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)〉
考题
( 难度:中等)增加表单电脑的隐藏域的HTML代码是()A.<input type=submit>B.<input type=image>C.<input type=text>D.<input type=hidden>
热门标签
最新试卷