var myage=alert(111)
if(myage==true){document.write(111)}
else(document.write(2123))
if(myage==true){document.write(111)}
else(document.write(2123))
2021-05-22
function openWindow(){
var conf=confirm("是否打開(kāi)");
if(conf==true)
{
var newurl=prompt("請(qǐng)輸入網(wǎng)址","http://idcbgp.cn/");
var mywin=window.open(newurl,'_blank','width=400,height=500');
}else{
alert("Follow your order!");
}
}
var conf=confirm("是否打開(kāi)");
if(conf==true)
{
var newurl=prompt("請(qǐng)輸入網(wǎng)址","http://idcbgp.cn/");
var mywin=window.open(newurl,'_blank','width=400,height=500');
}else{
alert("Follow your order!");
}
}
2021-05-13
function openWindow() {
var message = confirm('shuru');
if(message === true) {
var op = window.open('http://idcbgp.cn/','_blank','width=400,height=500')
}
}
var message = confirm('shuru');
if(message === true) {
var op = window.open('http://idcbgp.cn/','_blank','width=400,height=500')
}
}
2021-03-11
function openWindow()
{
var conf = confirm("Do you sure open the new windows?");
if (conf)
{
var newwin = prompt("Please Input Url","http://idcbgp.cn/");
var mywin = window.open(newwin);
}
else
{
alert("Follow your order!");
}
}
{
var conf = confirm("Do you sure open the new windows?");
if (conf)
{
var newwin = prompt("Please Input Url","http://idcbgp.cn/");
var mywin = window.open(newwin);
}
else
{
alert("Follow your order!");
}
}
2021-01-22
<script type="text/javascript">
function Wopen(){
window.open('http://idcbgp.cn','_blank','width=600,height=400,top=100,left=0')
}
</script>
function Wopen(){
window.open('http://idcbgp.cn','_blank','width=600,height=400,top=100,left=0')
}
</script>
2021-01-21
document.write("hello");
document.getElementById("p1").style.color="blue";
document.getElementById("p1").style.color="blue";
2021-01-21
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
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