单项选择题如果想在网页显示后,动态地改变网页的标题()

A.是不可能的
B.通过document.write(“新的标题内容”)
C.通过document.title=(“新的标题内容”)
D.通过document.changeTitle(“新的标题内容”)


您可能感兴趣的试卷

你可能感兴趣的试题

1.单项选择题产生当前日期的方法是()

A.Now();
B.Date()
C.new Date()
D.new Now()

2.单项选择题以下()表达式产生一个0~7之间(含0,7)的随机整数.

A.Math.floor(Math.random()*6)
B.Math.floor(Math.random()*7)
C.Math. floor(Math.random()*8)
D.Math.ceil(Math.random()*8)

3.单项选择题将字串s中的所有字母变为小写字母的方法是()

A.s.toSmallCase()  
B.s.toLowerCase()  
C.s.toUpperCase()      
D.s.toUpperChars()

4.单项选择题

JS语句 
var a1=10; 
var a2=20; 
alert(“a1+a2=”+a1+a2) 
将显示()结果

A.a1+a2=30
B.a1+a2=1020
C.a1+a2=a1+a2
D.显示错误

6.单项选择题下列选项中,()不是网页中的事件

A.onclick
B.onmouseover
C.onsubmit
D.onpressbutton

7.单项选择题下列JavaScript的循环语句中()是正确的

A.if(i<10;i++) 
B.for(i=0;i<10)  
C.for i=1 to 10   
D.for(i=0;i<=10;i++)

8.单项选择题下列JS的判断语句中()是正确的

A.if(i==0)
B.if(i=0)
C.if i==0 then
D.if i=0 then

9.单项选择题JS特性不包括()

A.解释性
B.用于客户端
C.基于对象
D.面向对象

10.单项选择题弹出输入框,默认内容是“Hello World”的正确javascript语法是()

A.document.write("Hello World")
B."Hello World"
C.response.write("Hello World")
D.prompt(“输入”,"Hello World")