300個字放不下
function openWin(){var judge = confirm("是否建立新網頁?");if(judge == true){var newWeb=prompt("請輸入網址:","例如:baidu");if(newWeb!=null){ ? window.open('http://www.'+newWeb+'.com','_blank','width=400,height=500,top=50,left=50,menubar=no,foolbar=no,status=no');}else{alert("你沒有出入網址!");}}else{alert("你選擇了退出。");}}
2016-04-11
function openWin(){
var judge = confirm("是否建立新網頁?");
if(judge == true){var newWeb=prompt("請輸入網址:","例如:baidu");
window.open('http://www.'+newWeb+'.com','_blank','width=400,height=500,top=50,left=50,menubar=no,foolbar=no,status=no');