為什么彈不出來新的網(wǎng)頁
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>window對(duì)象</title>
<script type="text/javascript">
? ? alert("歡迎來的慕課網(wǎng)");
? ? function my(){
? ? ? ? window.open('http://idcbgp.cn','_blank','width=600,height=400,top=100,left=0');
? ? }
</script>
</head>
<body>
<form>
<input type="button" value="點(diǎn)擊我,打開新窗口" onclick="my()" />
</form>
</body>
</html>
2024-02-24
去掉你width前面的單引號(hào)和后面的單引號(hào),試試
2020-09-10
我的可以啊!應(yīng)該是不支持那個(gè)瀏覽器
2020-04-22
解決的? ?用別的編輯器就能彈出來