<!DOCTYPE?html>
<html>
?<head>
??<title>?new?document?</title>??
??<meta?http-equiv="Content-Type"?content="text/html;?charset=gbk"/>???
??<script?type="text/javascript">??
????function?openWindow(){
????????var?yourconfirm?=?confirm("是否打開");
????????if(yourconfirm==true){
????????????var?yourprompt?=?prompt("你的網(wǎng)址",?'http://idcbgp.cn/')
????????????if?(yourprompt?!=?null){
????????????window.open(yourprompt,"blank","width=400,height=500,menubar=no,toolbar=no")}
????????????else{}}
????????????else{}
????????????
????????????
????????????
????????}
???????
??</script>?
?</head>?
?<body>?
??????<input?type="button"?value="新窗口打開網(wǎng)站"?onclick="openWindow()"?/>?
?</body>
</html>
2015-06-25
http后面的冒號用英文輸入
2015-06-25
thank u