請(qǐng)問(wèn) 這個(gè)錯(cuò)在哪里?
<html>
? <head>
? ? <meta charset="utf-8">
? ? <title>new document</title>
? ? <script type="text/javascript">
? ? ? ? function openWindow() {
? ? ? ? ? var isOpen = comfirm("是否打開(kāi)網(wǎng)頁(yè)?");
? ? ? ? ? if(isOpen==true){
? ? ? ? ? ? var url;
? ? ? ? ? ? url = prompt("請(qǐng)確認(rèn):","http://idcbgp.cn/");
? ? ? ? ? }
? ? ? ? ? else {
? ? ? ? ? ? document("thx,886!");
? ? ? ? ? }
? ? ? ? ? window.open("http://idcbgp.cn/",'_black','width=400,height=500');
? ? ? ? }
? ? ? ? openWindow();
? ? </script>
? </head>
? <body>
? ? ? <input type="button" value="新窗口打開(kāi)網(wǎng)站" ?onclick="openWindow()" />
? </body>
</html>
2017-06-21
_blank 而且邏輯有點(diǎn)問(wèn)題
2017-06-21
confirm