<html> <head> <title> ll</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta http-equiv="Content-Type" content="text/html; charset=gbk"/> <script type="text/javascript"> function openwindow(){var open=confirm("確定打開這個
我哪里錯了啊
2018-08-05
if(url!=null){window.open('http://www.baidu.com','-black','width=400,height=500,menubar=no,toolbar=mo');}? 你這樣只會永遠打開baidu頁面,如果你不輸入,那只有默認網頁,但是還是會打開百度頁面
2018-08-04
open 是一個函數不能這樣命名 你隨便換一個
2018-08-03
<title>
ll</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
? <meta http-equiv="Content-Type" content="text/html; charset=gbk"/>?
? ? <script type="text/javascript">?
function openwindow(){var open=confirm("確定打開這個網頁");
if(open==true) {var url=prompt{"是否打開這個網頁","http://www.baidu.com"}
if(url!=null){window.open('http://www.baidu.com','-black','width=400,height=500,menubar=no,toolbar=mo');}
? else{? ? ? ? ? ? alert("再見");? ? ? ? }? ? }? </script>? </head>? <body>??
? <input type="button" value="新窗口打開網站" onclick="openwindow()" />? </body></html>
2018-08-03
var 后面不可以設置open? 是關鍵字把
2018-08-03
復制清楚點 ,表達清楚點