<!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 res = confirm("要打開網(wǎng)頁嗎?");? ? ? ?? ? ? ?if(res)? ? ? ?{? ? ? ? ? ?var _open;? ? ? ? ? ?_open = prompt("想打開那個(gè)網(wǎng)頁","www.baidu.com");? ? ? ? ? ?window.open(_open,'_black','width=400,height=500,manubar=no,toolbar=no');}? ? ? ?}? ??? </script>??</head>??<body>? ?<input type="button" value="新窗口打開網(wǎng)站" onclick="openWindow()" />??</body></html>
為什么不能打開其他網(wǎng)頁只能打開慕課的網(wǎng)頁?
給生活一個(gè)大大的傻笑
2016-07-02 12:14:02