求大神們看看為什么無法運行
<!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 a =confirm("是否打開");
? ? ? ? if(a){
? ? ? ? ? ? var b = prompt("輸入要打開的網(wǎng)站","http://idcbgp.cn/");
? ? ? ? ? ? window.open(b,'_blank','width=400,height=500,menubar=no,toolbar=no')
? ? ? ? }
? ? }
? </script>?
?</head>?
?<body>?
? <input type="button" value="新窗口打開網(wǎng)站" onclick="openWindow()" />?
?</body>
</html>
2019-01-20
我試了一下,可以打開呀。