function openWindow(){
var fff = confirm("是否打開");
if(fff == true){
var url = prompt("請輸入你的網址");{
if(url!= null){
window.open('http://www.xianlaiwan.cn','_blank','width:600.height:400,top:100,left:0') } }
}else{
alert("你沒有打開任何東西");
}}
var fff = confirm("是否打開");
if(fff == true){
var url = prompt("請輸入你的網址");{
if(url!= null){
window.open('http://www.xianlaiwan.cn','_blank','width:600.height:400,top:100,left:0') } }
}else{
alert("你沒有打開任何東西");
}}
function openWindow(){
var my=confirm("是否打開頁面:");
if(my==true)
{
window.open("http://www.xianlaiwan.cn","_blank","width=400,height=500,menubar=no,toolbar=no");
}}
var my=confirm("是否打開頁面:");
if(my==true)
{
window.open("http://www.xianlaiwan.cn","_blank","width=400,height=500,menubar=no,toolbar=no");
}}
<script type="text/javascript">
function openWindow(){
var html=confirm("是否打開新窗口?");
if(html==true){
window.open("http://www.xianlaiwan.cn/","_blank","width=400px,height=500px,menubar=no,toolbar=no")
}
}
</script>
function openWindow(){
var html=confirm("是否打開新窗口?");
if(html==true){
window.open("http://www.xianlaiwan.cn/","_blank","width=400px,height=500px,menubar=no,toolbar=no")
}
}
</script>
function openWindow(){
var mymessage=confirm("是否打開新窗口");
if(mymessage==true)
{
var score;
score = prompt("輸入網址");
if(score==1){
window.open('http://www.xianlaiwan.cn',
'_blank',
'width=400,height=500,menubar=no,toolbar=no') }
}
else
{
}
}
var mymessage=confirm("是否打開新窗口");
if(mymessage==true)
{
var score;
score = prompt("輸入網址");
if(score==1){
window.open('http://www.xianlaiwan.cn',
'_blank',
'width=400,height=500,menubar=no,toolbar=no') }
}
else
{
}
}
function openWindow(){
var myck=confirm("是否打開?");
if(myck ==true)
{
var myck = prompt("請輸入網址:","http://www.xianlaiwan.cn/");
應該是這樣了
window.open('http://www.xianlaiwan.cn/','width=400','height=500','menubar=no','toolbar=no')
}
var myck=confirm("是否打開?");
if(myck ==true)
{
var myck = prompt("請輸入網址:","http://www.xianlaiwan.cn/");
應該是這樣了
window.open('http://www.xianlaiwan.cn/','width=400','height=500','menubar=no','toolbar=no')
}
新窗口是否打開immoc
function openWindow(){
var newpage=confirm("是否打開")
if(newpage==true)
{
window.open('http://imooc.com','width=400,height=500,menubar=no,toolbar=no');
}
else{
alert("無法回應")
}
}
</script>
function openWindow(){
var newpage=confirm("是否打開")
if(newpage==true)
{
window.open('http://imooc.com','width=400,height=500,menubar=no,toolbar=no');
}
else{
alert("無法回應")
}
}
</script>
function rec(){
while(true){
var mychar="吃了炫邁";
var myChar="根本停不下來";
alert(mychar);
alert(myChar);
}
}rec();
while(true){
var mychar="吃了炫邁";
var myChar="根本停不下來";
alert(mychar);
alert(myChar);
}
}rec();
2019-10-27
<script type="text/javascript">
var mychar=document.getElementById("con");
document.write("原標題:"+mychar.innerHTML+"<br>"); //輸出原h2標簽內容
mychar.innerHTML="Hello world!";
document.write("修改后的標題:"+mychar.innerHTML); //輸出修改后h2標簽內容
</script>
var mychar=document.getElementById("con");
document.write("原標題:"+mychar.innerHTML+"<br>"); //輸出原h2標簽內容
mychar.innerHTML="Hello world!";
document.write("修改后的標題:"+mychar.innerHTML); //輸出修改后h2標簽內容
</script>
2019-10-18
function openWindow()
var mymessage = confirm('是否打開網頁');
if (mymessage == true){
window.open('http://www.xianlaiwan.cn','_blank','width=400,height=500,toolbar=no,menubar=no')
};
var mymessage = confirm('是否打開網頁');
if (mymessage == true){
window.open('http://www.xianlaiwan.cn','_blank','width=400,height=500,toolbar=no,menubar=no')
};
function openWindow(){
var message=confirm("是否確認打開頁面");
if(message==true{
var h=prompt("請輸入你的網址","http://www.xianlaiwan.cn/") window,open(h,'_blank','width=400,height=500,toolbar=no,menubar=no')}
else
{
alert("goodbye" }
}
var message=confirm("是否確認打開頁面");
if(message==true{
var h=prompt("請輸入你的網址","http://www.xianlaiwan.cn/") window,open(h,'_blank','width=400,height=500,toolbar=no,menubar=no')}
else
{
alert("goodbye" }
}