代碼的答案
function openWindow(){ ? ? ? ?if(confirm("是否打開新窗口?") == true){ ? ? ? ? ? ?var webSite = prompt("確定打開的網址","www.xianlaiwan.cn") ? ? ? ? ? ?if(webSite !== null){ ? ? ? ? ? ? ? ?window.open (webSite,"_blank","width=400,height=500,menubar=no,toolbar=no") ? ? ? ? ? ? ?}; ? ? ? ? ?}; ? ?};
2016-08-05
function openWindow(){
? ? var message = confirm("是否確認打開網頁?");
? ? if(message==true){
? ? ? ? var temp = prompt("輸入網址");
? ? ? ? if(temp==""){
? ? ? ? ? ? temp = "http://www.xianlaiwan.cn/";
? ? ? ? }
? ? window.open(temp,"_blank","width=400,height=500,menubar=no,toolbar=no");
? ? }
? ? }
2016-08-05
你的會執行嗎?