怎么沒有任何顯示?。?/h1>
js中打開新窗口,為什么我的代碼把按鈕點(diǎn)擊后什么都沒有顯示。
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>window.open</title>
<script type="text/javascript">
? function Wopen(){
????? window.open(‘htttp://idcbgp.cn’,‘_blank’,‘width:600,height:400,top=100,left=0’)
?????
? }
</script>
</head>
<body>
??? <input name="button" type="button" onClick="Wopen()" value="點(diǎn)擊我,打開新窗口!" / >
</body>
</html>
用vs運(yùn)行了也不行,求教。
js中打開新窗口,為什么我的代碼把按鈕點(diǎn)擊后什么都沒有顯示。
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>window.open</title>
<script type="text/javascript">
? function Wopen(){
????? window.open(‘htttp://idcbgp.cn’,‘_blank’,‘width:600,height:400,top=100,left=0’)
?????
? }
</script>
</head>
<body>
??? <input name="button" type="button" onClick="Wopen()" value="點(diǎn)擊我,打開新窗口!" / >
</body>
</html>
用vs運(yùn)行了也不行,求教。
2017-01-04
逗號(hào)的問題,你看看逗號(hào)有沒有錯(cuò)
2016-12-31
?width:600,height:400 換成width=600,height=400