大神們,哪里出錯了阿
<!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 choose=confirm("是否打開?");
? ? ? ? if(choose==true)
? ? ? ? {?
? ? ? ? ? ? var newurl=prompt("確定打開的網址","http://www.xianlaiwan.cn");
????????}
? ? ? ??? ?if(newurl!==null) ?
? ? ? ? ? ? { ? ?window.open(newurl,'_blank','width=400,heigth=500,menubar=no,toolbar=no');?
? ? ? ? ? ? }? ?
? ? ? ? else
? ? ? ? {
? ? ? ? ? alert("sorry1!"); ?
? ? ? ? } ??
? ? }?
? </script>?
?</head>?
?<body>?
?<input type="button" value="新窗口打開網站" onclick="openWindow()" />?
?</body>
</html>
2015-07-31
這一句分號錯了,改成英文分號吧