第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

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

哪位大佬看看這么寫對嗎

<!DOCTYPE html>

<html>

?<head>

? <title> new document </title>??

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

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

? ? function NewWindow(){

? ? ? window.open('http://www.imocc.com/','_blank','width=400,height=500,menubar=no,toolbar=no');

? ?}

? ?function openWindow(){

? ? var mywindow=confirm("是否打開新窗口");

? ? if (mywindow==true){

? ? ? ? NewWindow();

? ? }

? ? else{

? ? ? ? None;

? ? }? ?

? ?}

? ??

? </script>?

?</head>?

?<body>?

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

?</body>

</html>


正在回答

3 回答

<html>	<head>		<title>打開輸入網(wǎng)頁</title>		<script?type="text/javascript">			function?openWeb(){				var?getUrl;				getUrl?=?prompt("請輸入想要打開的網(wǎng)頁地址:");				if(getUrl!=null){					window.open("http://"+getUrl,'_blank','width=300,height=200,menubar=no,toolbar=no,?status=no,scrollbars=yes');				}else{					window.open('http://idcbgp.cn','_blank','width=300,height=200,menubar=no,toolbar=no,?status=no,scrollbars=yes');				}			}		</script>	</head>	<body>		<input?name="open"?type="button"?onclick="openWeb()"?value="open"/>	</body></html>


0 回復(fù) 有任何疑惑可以回復(fù)我~

open的url不對?。。?!慕課網(wǎng)的url是“http://idcbgp.cn”,采用的協(xié)議是HTTPS不是HTTP啊,所以你是打開不了“http://idcbgp.cn”的?。?!

0 回復(fù) 有任何疑惑可以回復(fù)我~
#1

LouisDuan 提問者

謝謝大佬指點!?。〈_實是沒打開
2019-03-12 回復(fù) 有任何疑惑可以回復(fù)我~
#2

肖耀仔

不對吧,我打開是沒問題的
2019-03-12 回復(fù) 有任何疑惑可以回復(fù)我~
#3

KingToAce 回復(fù) 肖耀仔

那是因為你曾經(jīng)打開過正確的慕課網(wǎng)地址,瀏覽器一般都會存在緩存的,你會發(fā)現(xiàn)你打開的慕課網(wǎng)和你輸入的協(xié)議不一樣,你能打開的是HTTPS協(xié)議的,并不是你輸入的HTTP協(xié)議的慕課網(wǎng)地址,你重開瀏覽器再試試。
2019-03-13 回復(fù) 有任何疑惑可以回復(fù)我~

<!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 mywin=prompt("是否打開新窗口?");

? ? ? ? ? ? if(mywin=='確定'){

? ? ? ? ? ? ? ? var winmy=window.open('http://idcbgp.cn','width=400,height=500,menubar=no,toolbar=no');

? ? ? ? ? ? }

? ? ? ? ? ? else{

? ? ? ? ? ? }

? ? }

? </script>?

?</head>?

?<body>?

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

?</body>

</html>

我是這么寫的~.~

0 回復(fù) 有任何疑惑可以回復(fù)我~

舉報

0/150
提交
取消

哪位大佬看看這么寫對嗎

我要回答 關(guān)注問題
微信客服

購課補貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動學(xué)習(xí)伙伴

公眾號

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號