<!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 window=confirm("新窗口打開網(wǎng)站");? ? ? if(window==true){? ? ? ? ? var url = prompt("請輸入網(wǎng)站地址","http://idcbgp.cn");?? ? ? ? ? if(url != null){? ? ? ? ? ? ? window.open(url,"_blank","width=400px,height=500px,menubar=no,tolbar=no");? ? ? ? ? }else{? ? ? ? ? alert("88");? ? ? ? ? }? ? ? }else{? ? ? ? ? alert("88");? ? ? }?? ? ? }</script>??</head>??<body>? ?<input type="button" value="新窗口打開網(wǎng)站" onclick="openWindow()" />??</body></html>
為什么網(wǎng)頁打不開 求指導(dǎo)
仲夏夜的溫暖
2016-01-25 19:41:48