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

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

不會啊這題

不會啊這題,沒有思路,誰來教教我啊

正在回答

8 回答

? ? 要用prompt確認打開的網(wǎng)頁啊,還有設(shè)置默認值,這里是3個都要用啊。

function openWindow(){

? ? // 新窗口打開時彈出確認框,是否打開

? ? var msg=confirm("是否打開?");

? ? if(msg==true){

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

? ? var ad = prompt("請輸入網(wǎng)址:","http://idcbgp.cn/") ;

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

? ? window.open(ad,'_blank0','width=400,height=500');

? ? }

? ? }


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

? ?function openWindow ()

? ? {

? ? ? ? var name=confirm("你確定要打開網(wǎng)頁嗎?");

? ? ? ? if(name==trun)

? ? ? ? {

? ? ? ? ? ? window.open("http://idcbgp.cn/""windth=400,height=500,menubar=no,toolbar=no, status=no,scrollbars=yes");

? ? ? ? }

? ? ? ? else

? ? ? ? {

? ? ? ? ? ? alert("謝謝訪問");

? ? ? ? }

? ? ? ? ? ??

? ? ? ? }

? ? ? ? }

? ??


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

<script type="text/javascript"> ?

? ? // 新窗口打開時彈出確認框,是否打開

? ? var boo = confirm("是否打開");

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

? ? if(boo){

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

? ? ? ? window.open("http://idcbgp.cn/", "_blank", "width=400,height=500, scrollbars=no, menu=no");

? ? }

? </script>?

scrollbars=no, menu=no這兩個參數(shù)設(shè)置了看不出效果,無解。。。


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

p1.className是表示id="p1";的元素的class,給他賦值就是相當于修改了p1的class,p1.className="one";相當于p1那里變成了<p id="p1" class="one">xxx</p>;這樣就修改了樣式了。

<script type="text/javascript">

? function add(){

? ? ?var p1 = document.getElementById("p1");

? ? ?p1.className="one"

? }

? function modify(){

? ? ?var p2 = document.getElementById("p2");

? ? ?p2.className="two";

? }

</script>


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

23婉 提問者 回復 qq_朱亞光_03625475

應該是
2016-07-14 回復 有任何疑惑可以回復我~

<!DOCTYPE html>

<html>

?<head>

? <title> new document </title> ?

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

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

? ??

? ? // 新窗口打開時彈出確認框,是否打開


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


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

? ? function openWindow(){

? ? ? ? var msg = confirm("確定要打開網(wǎng)站的新窗口?");

? ? ? ? if(msg==true){

? ? ? ? ? ? prompt("請輸入要打開的網(wǎng)址?","http://idcbgp.cn")

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

? ? ? ? }

? ? }

? ? ? ??

? ??

? </script>?

?</head>?

?<body>?

?<input type="button" value="新窗口打開網(wǎng)站" 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"> ?

? ?var open;

? ?// 新窗口打開時彈出確認框,是否打開

var temp=confirm("是否要打開新的網(wǎng)頁?");


? if(temp)?

? ? {

? ? ?open=prompt("請輸入你要打開的網(wǎng)址:","http://idcbgp.cn/");

? ? ?window.open(k_open,'_blank','width=400,height=500,menubar=no,toolbar=no');

? ? }

? ? } ? ?

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

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

? </script>?

?</head>?

?<body>?

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

?</body>

</html>


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

23婉 提問者

button沒用上嗎?
2016-07-14 回復 有任何疑惑可以回復我~

function openWindow(){


? ? ? ? var openwindows = confirm("彈出窗口?");


? ? ? ? if(openwindows==true)


? ? ? ? { ??


? ? ? ? ? ? openwindows=prompt("網(wǎng)址跳轉(zhuǎn)","http://idcbgp.cn/")


? ? ? ? ? ? window.open(openwindows,'_blank','width=400,height=500,menubar=no,toolbar=no');


? ? ? ? }


? ? ? ? }


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

舉報

0/150
提交
取消
JavaScript入門篇
  • 參與學習       741103    人
  • 解答問題       9851    個

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

進入課程
微信客服

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

幫助反饋 APP下載

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

公眾號

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