谷歌瀏覽器的彈出的正常小窗口,但是IE瀏覽器就顯示全屏,沒有區(qū)分大小窗口,是瀏覽器不兼容的問題嗎?
<!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 aa=confirm("確認(rèn)新建窗口打開網(wǎng)站嗎?");
? ? ? ? if(aa==true){
? ? // 新窗口打開時彈出確認(rèn)框,是否打開
var bb=prompt("新窗口打開時彈出確認(rèn)框,是否打開","http://idcbgp.cn");
? ? // 通過輸入對話框,確定打開的網(wǎng)址,默認(rèn)為 http://idcbgp.cn/
? ? ? ? ? ? if(bb!=null){
? ? window.open(bb,"_blank",'width=400,height=500,menubar=no,toolbar=no')
}
? ? //打開的窗口要求,寬400像素,高500像素,無菜單欄、無工具欄。
? ? else{alert("訪問進程終止!");}
? ? ? ? }
? ? else{alert("放棄訪問!");}
? ? ? ? }
? </script>?
?</head>?
?<body>?
? <input type="button" value="新窗口打開網(wǎng)站" onclick="openWindow()" />?
?</body>
</html>
2019-05-11
有這個可能