我這樣寫他說我對了
我這樣寫他說我對了
? ? var mynum=confim(是否打開確認框?)
? ?if(mynum==ture);
? ?{document.write=("打開了");}
? ?else
? ?{document.write=("無法打開");}// 新窗口打開時彈出確認框,是否打開
? ? window.open('http://www.xianlaiwan.cn/','-blank','width=400px,height=500px,menubar=no,toolbar=no')// 通過輸入對話框,確定打開的網址,默認為 http://www.xianlaiwan.cn/
? ? //打開的窗口要求,寬400像素,高500像素,無菜單欄
2015-12-15
驗證程序錯誤程序
?function openWindow(){
? ? var wicket=confirm("是否打開頁面?")
? ? if(wicket==true){
? ? ? ? window.open('http://imooc.com','_black','width=400,height=500,menubar=yes,toolbar=no')
? ? }
? }