单项选择题
关于以下两个陈述的描述中,正确的是:()
陈述 1:window 对象的 confirm 方法用于显示一个包括相关信息以及 Yes 和 No 这两个按钮的对话框。
陈述 2:window 对象的 alert 方法用于弹出一个提示窗口,显示提示信息。
A.陈述1正确,陈述2错误
B.陈述1错误,陈述2正确
C.陈述1和陈述2均正确
D.陈述1和陈述2均错误
点击查看答案
相关考题
-
单项选择题
history从属于window,下列能访问前一页面方法是:()
A.back(-1)
B.back(1)
C.forward(1)
D.go(-1) -
单项选择题
与window对象无关的属性是下列哪项:()
A.top
B.self
C.left
D.frames -
单项选择题
如何在浏览器的状态栏放入一条消息:()。
A.statusbar = "put your message here"
B.window.status = "put your message here"
C.window.status("put your message here")
D.status("put your message here")
