我為什么打不開設置的窗口?
function openWindon(){ if(confirm("確定打開新窗口嗎?")){ var url = prompt("請輸入一個網(wǎng)址","http://idcbgp.cn/"); window.open( url,"_blank","toolbar=no, menubar=no, scrollbars=yes, ?width=600, height=400"); }我為什么打不開窗口?
function openWindon(){ if(confirm("確定打開新窗口嗎?")){ var url = prompt("請輸入一個網(wǎng)址","http://idcbgp.cn/"); window.open( url,"_blank","toolbar=no, menubar=no, scrollbars=yes, ?width=600, height=400"); }我為什么打不開窗口?
2016-12-23
舉報
2016-12-23
這個和我那個有什么區(qū)別嗎? ?status=yes?什么意思?
2016-12-23
<!DOCTYPE HTML>
<html>
? ? <head>
? ? ? ? <meta http-equiv="content-type" content="text/html"; charset="utf-8" />
? ? ? ? <title></title>
? ? ? ? <script type="text/javascript">
? ? ? ? ? ? function openWindow()
? ? ? ? ? ? {
? ? ? ? ? ? ? ? if (confirm("確定打開新窗口嗎?"))
? ? ? ? ? ? ? ? {
? ? ? ? ? ? ? ? ? ? var url = prompt("請輸入一個網(wǎng)址", "http://idcbgp.cn/");
? ? ? ? ? ? ? ? ? ? window.open(url, "_blank", "toolbar=no, menubar=no, scrollbars=yes, ?width=600,status=yes; height=400");
? ? ? ? ? ? ? ? }
? ? ? ? ? ? }
? ? ? ? </script>
? ? </head>
? ? <body>
? ? ? ? <input type="button" value="click me" onclick="openWindow()" />
? ? </body>
</html>