<!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?open1=confirm("是否打開新頁面?")
??if(open1==true){
????var?open2=prompt("請(qǐng)輸入網(wǎng)址","http://idcbgp.cn/")
?????if(open2!=null){
??????window.open('http://idcbgp.cn/','_blank','width=400,height=500,toolbar=yes,menubar=no');
??
?????}else
????????{
?????????alert("不能打開哦");
???????????}
??}else{
??????alert("還是不能哦");
??????}?
??}
???</script>?
?</head>?
?<body>?
??<input?type="button"?value="新窗口打開網(wǎng)站"?onclick="openWindow()"?/>?
?</body>
</html>
這個(gè)網(wǎng)頁為什么打開后顯示是網(wǎng)頁無法訪問?
祀未
2016-06-14 00:43:13