第1题
若将JavaScript代码写在单独的test.js文件中,需要在调...
若将JavaScript代码写在单独的test.js文件中,需要在调用它的HTML页面中插入的代码是<scriptsrc=“test.js“type=“javascript“>。<br><pclass=“answer“></p><br><br>13、JavaScript的内置对象window负责操作浏览器窗口,其中window.open()方法可以弹出消息框,window.close()方法可以关闭窗口,window.alert()方法可以打开新窗口。<br><pclass=“answer“></p><br><br>14、history对象包含用户的浏览历史等信息,其中history.forward()方法相当于单击浏览器上的后退按钮,history.back()方法相当于单击浏览器上的前进按钮。<br><pclass=“answer“></p><br><br>15、在名为form的表单中有一个文本框account,其中的内容可以用代码form.account.value获得。<br><pclass=“answer“></p><br><br>16、用location对象实现跳转到网页a.html的代码是windows.location.href=“a.html“。<br><pclass=“answer“></p><br><br>17、document对象从属于window对象。<br><pclass=“answer“></p><br><br>18、用docume..
点击查看答案