單項選擇題在HTML中,為了在頁面中輸出當前頁面的URL的地址,下面Javascript語句正確的是()
A.document.write(document.location)
B.document.write(document.title)
C.document.write(document.body)
D.document.write(document.links)
您可能感興趣的試卷
你可能感興趣的試題
1.單項選擇題在HTML頁面中使用外部JavaScript文件的正確語法是()。
A.<language="JavaScript" src="scriptfile.js">
B.<script language="JavaScript" src="scriptfile.js"></script>
C.<script language="JavaScript" =scriptfile.js></script>
D.< language src="scriptfile.js">
2.單項選擇題在date對象的方法組中,關(guān)于getMonth()方法的使用時整數(shù)()代表一年中的7月。
A.3
B.6
C.7
D.8