誰幫忙看看問題出在哪里?
<!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(){
windoe.open('http:idcbgp.cn','blank','width=600','height=400','top=100','left=o',)
? }?
</script>
</head>
<body>
? ? <input name="button" type="button" onClick="Wopen()" value="點擊我,打開新窗口!" / >
</body>
</html>
2016-05-22
應該是window.open('http://idcbgp.cn',? '_blank', 'width=600px', 'height=400px', 'top=100px', 'left=0px');
你window這個單詞拼寫錯了,還有blank要加下劃線,你把left的值0px寫成了英文小寫o了
2016-05-26
網址雙斜杠沒有了,left=0而不是o
2016-05-22
<!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(){
? ?window.open('http://idcbgp.cn','blank','width=600,height=400,top=100,left=0')
? }?
</script>
</head>
<body>
? ? <input name="button" type="button" onclick="wopen()" value="點擊我,打開新窗口!" / >
</body>
</html>
2016-05-22
<input name="button" type="button" onClick="Wopen()" value="點擊我,打開新窗口!" / >
你的函數是wopen!=Wopen
2016-05-21
windoe.open('http:idcbgp.cn','blank,width=600,height=400,top=100,left=o,)