window對象:打不開新網頁,求解釋
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>window對象</title>
<script type="text/javascript">
function push(){
? ? alert("歡迎來到慕課網");
? ? window.open("http://www.xianlaiwan.cn/","_blank","width=600,height=400");
}
</script>
</head>
<body>
<form>
<input type="button" value="點擊我,打開新窗口" onclick="push()" />
</form>
</body>
</html>
2016-04-17
你在復制到DW環境里再執行看看,我的直接在這個課程上也打不開
2022-03-26
我知道了寫#是因為前面寫的是id不知道問題怎么刪除我的也是我的firefox也是
2016-04-12
window.open("http://www.xianlaiwan.cn/" , "_blank","width=600" ,"height=400");
2016-04-12
我打開了,你用的什么瀏覽器