最近中文字幕高清中文字幕无,亚洲欧美高清一区二区三区,一本色道无码道dvd在线观看 ,一个人看的www免费高清中文字幕

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定

2—7彈不出框啊

<!DOCTYPE html>

<html>

?<head>

? <title> new document </title> ?

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

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

? ? ? ?function gg(){

? ? ? var gg=confirm("新窗口打開時(shí)彈出確認(rèn)框,是否打開");

? ? // 新窗口打開時(shí)彈出確認(rèn)框,是否打開

? ? if (gg==true) {

? ? ? ? var g=prompt("請(qǐng)輸入網(wǎng)址:","http://yifanck.cn");

? ? window.open("http://yifanck.cn,_blank,width=400,height=500,menubar=no,toolbar=no,")?

? ? };

? ? // 通過輸入對(duì)話框,確定打開的網(wǎng)址,默認(rèn)為 http://yifanck.cn/

? ? else

? ? ?{return null;}

? ? //打開的窗口要求,寬400像素,高500像素,無菜單欄、無工具欄。

? ? };

? ??

? </script>?

?</head>?

?<body>?

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

?</body>

</html>


正在回答

3 回答

? window.open('http://yifanck.cn/','about_blank','width=400,height=500,toolbar=no,menubar=no')

引號(hào)的使用要注意

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

cc超 提問者

還是沒反應(yīng)啊,大神幫幫忙看看QAQ~
2016-04-07 回復(fù) 有任何疑惑可以回復(fù)我~

<html>
?<head>
? <title> new document </title>?
? <meta http-equiv="Content-Type" content="text/html; charset=gbk"/>??
? <script type="text/javascript">?
???
?? function openWindow(){
?????? var xinxi=prompt("是否打開:","http://yifanck.cn/");
?????? if(xinxi==ture)
??????
?????? {windows.open('http://yifanck.cn/','_blank','width=400,height=500,menubar=no,took=lbar=no')
???????
?????? }
?????? else
?????? {return null;}
?????? }
??
???
? </script>
?</head>
?<body>
?? <input type="button" value="新窗口打開網(wǎng)站" onclick="openWindow()" />
?</body>
</html>

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

哎呀。?onclick="openWindow()"忘記改了0-0

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

那一年美然

可以了嗎
2016-04-07 回復(fù) 有任何疑惑可以回復(fù)我~
#2

cc超 提問者 回復(fù) 那一年美然

是的~~改了一些引號(hào)和點(diǎn)擊事件的名字就ok了。
2016-04-07 回復(fù) 有任何疑惑可以回復(fù)我~

舉報(bào)

0/150
提交
取消
JavaScript入門篇
  • 參與學(xué)習(xí)       741553    人
  • 解答問題       9869    個(gè)

JavaScript做為一名Web工程師的必備技術(shù),本教程讓您快速入門

進(jìn)入課程

2—7彈不出框啊

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

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

幫助反饋 APP下載

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

公眾號(hào)

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