不知道錯在哪兒,請指教
<!DOCTYPE html>
<html>
?<head>
? <title> new document </title> ?
? <meta http-equiv="Content-Type" content="text/html; charset=gbk"/> ??
? <script type="text/javascript"> ?
function openWindow()
{var open=confirm("確認新建窗口打開網站嗎?");
if(open==true)
{window.open('http://www.xianlaiwan.cn','_blank','width=400px,height=500px,menubar=no,toolbar=no'); ? ?
}
else
{alert("再見!");}
} ? ??
? </script>?
?</head>?
?<body>?
?<input type="button" value="新窗口打開網站" onclick="openWindow()" />?
?</body>
</html>
2015-10-04
我的和你一樣,也不知道錯在哪里,把別人的復制上去,就打開了,同樣的自己編寫的就打不開,暈死……