最新回答 / 強(qiáng)8936537
一個(gè)等于號(hào)是賦值,兩個(gè)等于號(hào)是判斷是否相等
function openWindow(){
var open=confirm("是否打開(kāi)新的窗口?")
if(open==true)
{var t =prompt("請(qǐng)輸入網(wǎng)址")
if(t='http://idcbgp.cn')
{window.open(t,'test','width=400,height=500,menubar=no,toolbar=no') }
else{document.write("請(qǐng)輸入正確的網(wǎng)址")}}
else{document.write("ok")}}
var open=confirm("是否打開(kāi)新的窗口?")
if(open==true)
{var t =prompt("請(qǐng)輸入網(wǎng)址")
if(t='http://idcbgp.cn')
{window.open(t,'test','width=400,height=500,menubar=no,toolbar=no') }
else{document.write("請(qǐng)輸入正確的網(wǎng)址")}}
else{document.write("ok")}}
2021-01-18
最新回答 / 啥玩意x
onclick后門(mén)應(yīng)該為onclick=“Wopen()”
最贊回答 / 慕俠4511785
//定義"取消設(shè)置"的函數(shù)????function?modifyRemove(){????????var?myconfirm?=?window.confirm("嗯,是否恢復(fù)初始設(shè)置?");????????if?(myconfirm?===?true){????????//?????txt.style?=?{};? ?//這種也行????????txt.removeAttribute("style");????????}
2021-01-03
function openWindow() {
var open_window = confirm("Do you want to open the website?");
if (open_window== true)
{window.open("http://idcbgp.cn","_blank","width=400,height=500,menubar=no,toolbar=no")}
else
{document.write("Ok")}
}
var open_window = confirm("Do you want to open the website?");
if (open_window== true)
{window.open("http://idcbgp.cn","_blank","width=400,height=500,menubar=no,toolbar=no")}
else
{document.write("Ok")}
}
2020-12-29
最新回答 / Simple567
慕課的問(wèn)題、你可以在自己電腦上新建一個(gè).html文件、把你的代碼放進(jìn)去、然后雙擊打開(kāi)試一下、應(yīng)該是可以的
2020-12-24
本節(jié)課主要講的是告訴你什么是dom
dom可以分為三種 分別是 元素節(jié)點(diǎn) 文本節(jié)點(diǎn) 熟悉節(jié)點(diǎn)
dom可以分為三種 分別是 元素節(jié)點(diǎn) 文本節(jié)點(diǎn) 熟悉節(jié)點(diǎn)
2020-12-19