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

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

求救!幫忙看一下吧,已經不行了

<!DOCTYPE html>

<html>

?<head>

? <title> new document </title> ?

? <meta http-equiv="Content-Type" content="text/html; charset=gbk"/> ??

? <script type="text/javascript"> ?

? ? function openWindows(){

? ? var open=confirm("open or not");

if(open==true)

{var url=prompt("is this address?","http;//www.xianlaiwan.cn");

if(url !=null)

{window.open(url,"_blank,",'width=600px,height=400px,menubar=no,toolbar=no');

}

else{alert("see you again");

}

else{alert("see you");}

}

? </script>?

?</head>?

?<body>?

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

?</body>

</html>


正在回答

3 回答

復制那么一大蛋子代碼有什么用?把關鍵地方代碼復制過來就行了,看著煩

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

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<title>無標題文檔</title>

<script type="text/javascript"> ?

? ? function openWindow(){

? ? var open=confirm("open or not");

if(open==true){

var url=prompt("is this address?","http;//www.xianlaiwan.cn");

if(url !=null){

window.open(url,"_blank,",'width=600px,height=400px,menubar=no,toolbar=no');

}

else{

alert("see you again");

}

}

else{

alert("see you");

}

}

? </script>?

</head>


<body>

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

</body>

</html>


0 回復 有任何疑惑可以回復我~
<!DOCTYPE?html>
<html>

	<head>
		<title>?new?document?</title>
		<meta?http-equiv="Content-Type"?content="text/html;?charset=gbk"?/>
		<script?type="text/javascript">
			function?openWindows(){
			????var?open=confirm("open?or?not");
				if(open==true){
					var?url=prompt("is?this?address?","http;//www.xianlaiwan.cn");
					if(url?!=null){
						window.open(url,"_blank,",'width=600px,height=400px,menubar=no,toolbar=no');
					}else{
						alert("see?you");
						alert("see?you?again");
					}
				}
			}
		</script>
	</head>

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

</html>

哥們,工欲善其事,必先利其器!剛學嗎?HBuilder,給你推薦個開發平臺。

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

舉報

0/150
提交
取消

求救!幫忙看一下吧,已經不行了

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

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

幫助反饋 APP下載

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

公眾號

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