<!DOCTYPE?html>
<html>
?<head>
??<title>?new?document?</title>??
??<meta?http-equiv="Content-Type"?content="text/html;?charset=gbk"/>???
??<script?type="text/javascript">??
????function?openWindow(){
????????if(comfirm("確認(rèn)打開新的窗口?"))
????????{
????????????
???????????var?url?=?prompt("請(qǐng)輸入要打開的網(wǎng)址","http://idcbgp.cn/");
???????????window.open(url,"_blank","width=400,height=500,menubar=no,toolbar=no");
????????}
????}
????
????
??</script>?
?</head>?
?<body>?
??<input?type="button"?value="新窗口打開網(wǎng)站"?onclick="openWindow()"?/>?
?</body>
</html>
2015-03-01
confirm <==> comfirm