請幫忙看下這里有錯嗎
<!DOCTYPE html>
<html>
?<head>
? <title> new document </title>?
? <meta http-equiv="Content-Type" content="text/html; charset=gbk"/>??
? <script type="text/javascript">?
???
?? // 新窗口打開時彈出確認框,是否打開
??? var mymessage=confirm('是否打開網(wǎng)站')
??? if mymessage=('yes')
??? {
??????? document.write("good")
??? }
??? else
??? {
??????? document.write("please confirm")
??? }
??? // 通過輸入對話框,確定打開的網(wǎng)址,默認為 http://idcbgp.cn/
??? //打開的窗口要求,寬400像素,高500像素,無菜單欄、無工具欄。?
??? window.open('http://idcbgp.cn','_blank','width=400,height=500,menubar=no,toolbar=no')
???
???
? </script>
?</head>
?<body>
?? <input type="button" value="新窗口打開網(wǎng)站" onclick="openWindow()" />
?</body>
</html>
2015-09-09
瀏覽器下按F12,進入開發(fā)者工具看看有沒有報錯信息