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