工学

单选题window对象的open方法返回的是()。A 返回打开新窗口的对象B boolean类型,表示当前窗口是否打开成功C 没有返回值D 返回int类型的值,开启窗口的个数

题目
单选题
window对象的open方法返回的是()。
A

返回打开新窗口的对象

B

boolean类型,表示当前窗口是否打开成功

C

没有返回值

D

返回int类型的值,开启窗口的个数

参考答案和解析
正确答案: C
解析: 暂无解析
如果没有搜索结果,请直接 联系老师 获取答案。
相似问题和答案

第1题:

What a ________ smell! Open the window and air the room.

A、disgusting

B、pleasing

C、powerful

D、disturbing


参考答案:A

第2题:

JavaScript中,关于window对象方法的说法错误的是()。

A.window对象包括location对象、history对象和docuement对象

B.window.onload()方法中的代码会在一个该页面加载完成后执行

C.window.open()方法用于在当前浏览器窗口加载指定的URL文档

D.window.close()方法用于关闭浏览器窗口


正确答案:C

第3题:

What a () smell! Open the window and air out the room.

A、disgusting

B、pleasing

C、wonderful

D、disturbed


参考答案:A

第4题:

关于浏览器对象之间的从属关系,正确的说法是( )。

A.window对象从属于document对象

B.document对象从属于window对象

C.window对象和document互不从属

D.以上选项均错


正确答案:B

第5题:

I used to sleep with the window _____.

A、opened

B、open

C、opening

D、to open


正确答案:B

第6题:

关于IE的window对象表述正确的有:()

A、window.opener属性本身就是指向window对象

B、window.reload()方法可以用来刷新当前页面

C、window.location=”a.html”和window.location.href=”a.html”的作用都是把当前页面替换成a.html页面

D、定义了全局变量g;可以用window.g的方式来存取该变量


正确答案:A,C,D

第7题:

判断一个ofstream类对象file打开文件是否失败,应该判断()

A、创建文件流对象时是否抛出异常

B、open成员函数的返回值

C、feof成员函数的返回值

D、!file是否为真


参考答案:D

第8题:

下列弹出信息提示的语句是()。

A.window.alert

B.window.close

C.document.alert

D.document.open


正确答案:A

第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")


正确答案:D

第10题:

在JavaScript中,使用open( )方法实现弹出窗口时,能够控制窗口大小无法调节的选项是( )

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");


正确答案:AC

更多相关问题