亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定

yy們幫我看看唄

<!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 mass=confirm("確定打開網?");

? ? if(mass==ture)

? ? {window.open('prompt("請輸入網址:")''width=400,height=500,munebar=no,toolbar=no');}

? ? ? ? ?

? ? ?}

? ?

? ??

? ??

? </script>?

?</head>?

?<body>?

? <input type="button" value="新窗口打開網站" onclick="openWindow()" />?

?</body>

</html>

代碼哪里有錯嗎?


正在回答

1 回答

function?openWindow(){???
????????var?mymessage?=?confirm("是否打開新的窗口");
????????if(mymessage?==?true)
????????????window.open('http://www.xianlaiwan.cn/','_blank','width=400,height=500,menubar=no,toolbar=no');
????????else
????????????document.write("你選擇不打開新的網頁!");
????}

以上是我的代碼 很好的運行了,你可以看一下,你的代碼有點亂,費眼 我就不看了?

0 回復 有任何疑惑可以回復我~

舉報

0/150
提交
取消

yy們幫我看看唄

我要回答 關注問題
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號