求助!想問(wèn)下我的代碼問(wèn)題出在哪?打不開(kāi)
<!DOCTYPE html>
<html>
<head>
? ? <meta charset="utf-8">
<title></title>
<script type="text/javascript">
? ? function openWindow()
? ? {
? ? ? ? var opentag=confirm("是否在新窗口打開(kāi)網(wǎng)站?");
? ? ? ? if (opentag==true)?
? ? ? ? {
? ? ? ? var webadress=prompt("請(qǐng)輸入網(wǎng)址"," http://idcbgp.cn/");
? ? ? ?
? ? ? ? if(webadress!=null)
? ? ? ? {
? ? ? ? window.open(webadress,'_blank','width=400,height=500,menubar=no,toolbar=no');
? ? ? ? }
? ? ? ? else
? ? ? ? {alert("結(jié)束");}
? ? ? ?
? ? ? ? };
? ? ? ? else
? ? ? ? {alert("結(jié)束");}
? ? }
</script>
</head>
<body>
<input type="button" value="新窗口打開(kāi)網(wǎng)站" onclick="openWindow()"/ >
</body>
</html>
2016-04-25
多了一個(gè) ; 符號(hào)
2016-04-25
第一個(gè)else多了一個(gè)分號(hào),網(wǎng)址的符號(hào)用英文輸入法輸
2016-04-25
多了一個(gè)“ ; ”符號(hào)