我的 網(wǎng)頁 出不來 啊,大神們,請問哪里錯了??
<title>window對象</title>
<script type="text/javascript">
function open1( )
{
? ? alert("歡迎來到慕課網(wǎng)");
? ? window.open('http://idcbgp.cn','_blank','width=600','height=400')
?}
</script>
<form>
<input type="button" value="點擊我,打開新窗口" onclick="open1( )" ?/>
</form>
2015-09-22
‘width=600,height=400' 這兩個參數(shù)應(yīng)該放到一起吧
2015-08-18
沒問題啊是,剩下的應(yīng)該是你的瀏覽器中,你沒有允許插件的運行吧。你把被阻止的彈窗插件打開就OK。
2015-08-18
!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>window對象</title>
<script type="text/javascript">
function open1()
{
? ? ?alert("歡迎來到慕課網(wǎng)");
? ? window.open('http://idcbgp.cn','_blank','width=600','height=400')
? ?
? ? }
</script>
</head>
<body>
<form>
<input type="button" value="點擊我,打開新窗口" onclick="open1()" ?/>
</form>
</body>
</html>
2015-08-18
你的所有頁面就這些嗎?body和html呢?只要是body里的東西,都是可以顯示的頁面上的。