返回打开新窗口的对象
boolean类型,表示当前窗口是否打开成功
没有返回值
返回int类型的值,开启窗口的个数
第1题:
A、disgusting
B、pleasing
C、powerful
D、disturbing
第2题:
A.window对象包括location对象、history对象和docuement对象
B.window.onload()方法中的代码会在一个该页面加载完成后执行
C.window.open()方法用于在当前浏览器窗口加载指定的URL文档
D.window.close()方法用于关闭浏览器窗口
第3题:
A、disgusting
B、pleasing
C、wonderful
D、disturbed
第4题:
关于浏览器对象之间的从属关系,正确的说法是( )。
A.window对象从属于document对象
B.document对象从属于window对象
C.window对象和document互不从属
D.以上选项均错
第5题:
I used to sleep with the window _____.
A、opened
B、open
C、opening
D、to open
第6题:
A、window.opener属性本身就是指向window对象
B、window.reload()方法可以用来刷新当前页面
C、window.location=”a.html”和window.location.href=”a.html”的作用都是把当前页面替换成a.html页面
D、定义了全局变量g;可以用window.g的方式来存取该变量
第7题:
判断一个ofstream类对象file打开文件是否失败,应该判断()
A、创建文件流对象时是否抛出异常
B、open成员函数的返回值
C、feof成员函数的返回值
D、!file是否为真
第8题:
A.window.alert
B.window.close
C.document.alert
D.document.open
第9题:
下列语句中,正确打开名为“window2"的新窗口的JavaScript语句是( )。
A.open.new("http://www.sina.COB.cn","window2")
B.new.window("http://www.sina.con.cn","window2")
C.new("http://www.sina.com.cn","window2")
D.window.open("http://www.sina.tom.cn","window2")
第10题:
A.window.open("show.html","弹出窗口","resizable=no");
B.window.open("show.html","弹出窗口","resizable=yes");
C.window.open("show.html","弹出窗口","resizable=0");
D.window.open("show.html","弹出窗口","resizable=1");