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