在IE瀏覽器打不開(kāi)
為什么用IE瀏覽器打不開(kāi)啊
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>window.open</title>
<script type="text/javascript">
? function Wopen(){
? ? ? var obey=confirm("確定要打開(kāi)新的網(wǎng)頁(yè)嗎?")
? ? ? if(obey==true){ ? ??
? ? ?window.open('http://idcbgp.cn','_blank','width=600,height=400,top=100,left=0,menubar=no,toolbar=no,scrollbar=no,status=no');
? ? ? }else{
? ? ? ? ? alert("打開(kāi)失敗!");
? ? ? }
? ? ??
}
??
</script>
</head>
<body>
? ? <input name="button" type="button" onClick="Wopen()" value="點(diǎn)擊我,打開(kāi)新窗口!" / >
</body>
</html>
2016-12-24
有可能是IE版本問(wèn)題,我用的是IE最新版的,一般都用IEedge,雖然不知道這是什么版本
2016-12-24
是不是瀏覽器出現(xiàn)什么錯(cuò)誤啦
2016-12-23
不好意思,昨天回答錯(cuò)了,你的代碼沒(méi)有錯(cuò)誤,我在DW上試過(guò)了所有功能所有瀏覽器都能實(shí)現(xiàn),但是在慕課上提交后運(yùn)行就會(huì)出現(xiàn)top=,和left=,這兩個(gè)設(shè)置失效的問(wèn)題
2016-12-23
也不行
2016-12-22
親,"width:600px;height:400px;top:100px;left:0px;",這些改正一下試試看