這什么反應(yīng)都沒有,大佬幫忙看看
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>window對象</title>
<script type="text/javascript">
alert("歡迎來到慕課網(wǎng)!");
function openWindow(){
? ? window.open("http://idcbgp.cn/" "_block" "width=600px,height=400px")
? ??
}
</script>
</head>
<body>
<form>
<input type="button" value="點(diǎn)擊我,打開新窗口" ?onclick="openWindow()"/>
</form>
</body>
</html>
2019-05-24
你缺少逗號。
2019-05-24
<script type="text/javascript">
function dj(){
? ? window.open("http://idcbgp.cn","_blank","width=600px,height=400px").alert("歡迎來到慕課網(wǎng)");
}
</script>
2019-02-19
?window.open("http://idcbgp.cn/" "_block" "width=600px,height=400px")
括號中的分句之間缺少逗號
2018-12-12
我覺得問題主要在參數(shù)之間都要加上","不然識別不了。_block只是name,問題不大的。第二個(gè)問題是一個(gè)語句寫完了之后得寫一個(gè)分號";"雖然電腦還是可以智能識別,但是為了規(guī)范還是寫著好。
2018-12-08
是_blank,不是_block
2018-11-19
window.open('www.baidu.com','_blank','width=600,height=400');
2018-11-17
是_blank,不是block
2018-11-16
window.open("http://idcbgp.cn/" "_block" "width=600px,height=400px")三個(gè)參數(shù)要用逗號(,)隔開,就像這樣window.open("http://idcbgp.cn/","_block", "width=600px,height=400px")
2018-11-15
function open(){
??? window.open("","_block","width=600,height=400");
}
alert("歡迎來到慕課網(wǎng)!")
2018-11-15
_blank