為什么單擊按鈕沒有反應(yīng)?
代碼如下:
<!DOCTYPE HTML>
<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('http://idcbgp.cn','_blank','width=600,height=400,top=100,left=0);??
? }?
</script>
</head>
<body>
? ? <input name="button" type="button" onClick="Wopen()" value="點擊我,打開新窗口!" />
</body>
</html>
之前的圖片附加url也是一樣的情況,點圖片毫無反應(yīng),不會彈出網(wǎng)址。
用的最新chrome瀏覽器,沒有開啟擴展程序。
2018-10-15
2018-10-23
onclick的第一個c大寫了
2018-10-16
謝謝你們的回答,但還是沒有解決我的問題。
現(xiàn)在就是,有些直接出現(xiàn)alert信息的可以彈窗,其他的都不會彈出任何窗口或網(wǎng)頁。
2018-10-15
語法錯誤,少了個引號,編輯器會有提示的啊