新標(biāo)簽怎么打不開
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>window對象</title>
<script type="text/javascript">
alert("歡迎來到慕課網(wǎng)!")
function openbrowser()
{
? ? window.open('http://www.baidu.com',width=600,height=400)
}
</script>
</head>
<body>
<form>
<input type="button" value="點(diǎn)擊我,打開新窗口" onclick="openbrowser" />
</form>
</body>
</html>
2022-03-27
基本上滿足開發(fā)需要,但是還要視情況而定!==就是變量的類型和值都必須不相等,而<>只判斷變量的值不相等就行了。
2017-08-09
window.open('http://www.baidu.com','_blank','width=600,height=400');
2016-12-13
window.open('http://www.baidu.com',width=600,height=400)
window.open()方法能帶上寬高?
一般都是window.location.href="'http://www.baidu.com";這句代碼打開一個新頁面吧