代碼如下:
在本地測試成功,子數限制所以排序的很丑
function openwindow(){
var c
var a = confirm("是否確認?")
if (a==true){
c = prompt("默認為 http://www.xianlaiwan.cn");
if(c==""){
c="http://www.xianlaiwan.cn/";}
else{}
alert('你選擇打開的網址是:'+c);
window.open(c,'_blank','width=400,height=500,menubar=no,toolbar=no, '); }else{}
}
function openWindow(){
var cfm=confirm("確認打開慕課網主頁?");
if(cfm==true){
window.open('http://www.xianlaiwan.cn/','width=400,height=500,menubar=no,toolbar=no');
}else{