為什么我打開的網站不是目標網址?我打開的網站是:http://www.xianlaiwan.cn/code/http://www.xianlaiwan.cn/code/
<!DOCTYPE html>
<html>
?<head>
? <title> new document </title> ?
? <meta http-equiv="Content-Type" content="text/html; charset=gbk"/> ??
? <script type="text/javascript"> ?
? ?var openWindow=function(){
? ? ? ? var my = confirm ("allow alert new window?")
? ? ? ?if (my == true)
{
? ? window.open('http://www.xianlaiwan.cn/','_blank','weight=400,height=500')
}
? ? else{
? ? }?
? ? }
? </script>?
?</head>?
?<body>?
?<input type="button" value="新窗口打開網站" onclick="openWindow()" />?
?</body>
</html>
2018-07-31
if(open) {
? ? ? ? window.open('http://www.xianlaiwan.cn/', width=400, height=500, toolbar=no, menubar=no)
? ? }
試試這樣 右邊會有新打開的窗口 而且是width height
2018-07-31
能打開http://www.xianlaiwan.cn/code/這個網站呀