JavaScript-打開新窗口(window.open)
錯在哪里啊?
<!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=200,top=100,left=0")?
?
? }
</script>
</head>
<body>
??? <input name="button" type="button" onClick="Wopen()" value="點擊我,打開新窗口!">
</body>
</html>
2017-08-30
第八行?
window.open("http://www.xianlaiwan.cn"",_blank","width=600,height=200,top=100,left=0")
留意你的引號標錯了。