function openWindow(){
var ask = confirm('開么?');
if(ask == true){
var web = prompt('開哪?(無需http://)');
if (web!=null && web!="")
{
window.open('http://'+web,'_blank')
}
else
{alert('錯了吧');}
}else{
alert('好的')
}
}
var ask = confirm('開么?');
if(ask == true){
var web = prompt('開哪?(無需http://)');
if (web!=null && web!="")
{
window.open('http://'+web,'_blank')
}
else
{alert('錯了吧');}
}else{
alert('好的')
}
}
function openWindow(){
var ask = confirm('開么?');
if(ask == true){
var web = prompt('開哪?(無需http://)');
if (web!=null && web!="")
{
window.open('http://'+site,'_blank')
}
else
{alert('錯了吧');}
}else{
alert('好的')
}
}
var ask = confirm('開么?');
if(ask == true){
var web = prompt('開哪?(無需http://)');
if (web!=null && web!="")
{
window.open('http://'+site,'_blank')
}
else
{alert('錯了吧');}
}else{
alert('好的')
}
}
function openWindow(){
var message=confirm("是否打開");
if(message==true){
var myname=prompt("確定打開的網址",'http://www.xianlaiwan.cn/');
if(myname=='http://www.xianlaiwan.cn/')
{
window.open('http://www.xianlaiwan.cn/','_blank','width=400,height=500px,menubar=no,toolbar=no') ;
}
}
}
var message=confirm("是否打開");
if(message==true){
var myname=prompt("確定打開的網址",'http://www.xianlaiwan.cn/');
if(myname=='http://www.xianlaiwan.cn/')
{
window.open('http://www.xianlaiwan.cn/','_blank','width=400,height=500px,menubar=no,toolbar=no') ;
}
}
}
function rec(){
var score; //score變量,用來存儲用戶輸入的成績值。
score = prompt("請輸入你的成績:");
if(score>100 || score<0){
document.write("請輸入真實成績!")
}
else if(score>=90)
{
... ...
var score; //score變量,用來存儲用戶輸入的成績值。
score = prompt("請輸入你的成績:");
if(score>100 || score<0){
document.write("請輸入真實成績!")
}
else if(score>=90)
{
... ...
2016-02-26
var message = confirm("是否打開新窗口?");
if(message == true){
var url = prompt("請輸入要打開的網址:",'http://www.xianlaiwan.cn');
}
if(url != null){
window.open(url,'_blank','width=500,height=400,menubar = yes,scrollbars=yes,menubar=no,toolbar = no');
}
if(message == true){
var url = prompt("請輸入要打開的網址:",'http://www.xianlaiwan.cn');
}
if(url != null){
window.open(url,'_blank','width=500,height=400,menubar = yes,scrollbars=yes,menubar=no,toolbar = no');
}