點擊 新窗口打開網站 打不開網站,,
<!DOCTYPE html>
<html>
<head>
? ? <meta charset="UTF-8">
? ? <title>自制網頁打開</title>
</head>
<body>
<script type="text/javascript">
var a
function openwindow(){
a=window.open('http://www.xianlaiwan.cn','_blank','widtn=600,height=400,top=100px,left=0px');
}
function guanbi(){
a.close();
}
</script>
<input type="button" value="新窗口打開網站" onclick="openwindow()"/>
<input type="button" value="關閉新窗口打開網站" onclick="guanbi()"/>
</body>
</html>
2018-07-28
a=window.open('http://www.xianlaiwan.cn','_blank','widtn=600,height=400,top=100px,left=0px')
寬度的英文打錯了
2018-06-27
我自己在;瀏覽器試了一下貌似是可以正常運行的
2018-06-27
應該是沒有條件判斷導致打開和關閉同時調用