大神能告訴這里那里錯了嗎?為什么打不開窗口?
<!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://www.xianlaiwan.cn','_blank''width=600,height=400,top=100,left=0');
? }
</script>
</head>
<body>
??? <input name="button" type="button" onClick="Wopen()" value="點擊我,打開新窗口!" / >
</body>
</html>
2016-06-04
window.open('http://www.xianlaiwan.cn','_blank''width=600,height=400,top=100,left=0');這句代碼blank和width中間少了一個逗號~
2016-06-04
可以打開的~重新刷新或者提交看看~
2016-06-04
也沒有像素,寬高
2016-06-04
onclick是小寫