已采納回答 / 無味蘿卜
window.open('http://www.xianlaiwan.cn',? '_blank', 'width=600, height=400, top=100, left=0')你的window.open()中第三個樣式設置參數沒有用引號括起來。left=0后不用加","。
2019-03-09
已采納回答 / 啥哈
var mynum;是聲明一個變量mychar="javascript"是對這個變量賦值,javascript不是數字要加雙引號var mynum=8是即聲明又賦值,8是數字不要加雙引號
2019-03-06
已采納回答 / qq_瑪雅小薩_0
你打開新窗口時寫錯了,應該是
window.open(url,?"_blank",?"width=400,height=500,menubar=no,toolbar=no")
2019-02-28
已采納回答 / 慕桂英0359397
? function openWindow()? {????? var open=confirm("確認打開新建窗口嗎?");????? if(open==true){????? var url=prompt("確認打開的窗口","http://www.xianlaiwan.cn/");????? if(url!=null)????? {window.open(url," _blank",width=400,height=500,menubar="no",toolbar="no");}????? }????? e...
2019-02-27
已采納回答 / 李慕粉
<!DOCTYPE html><html>?<head>? <title> new document </title>??? <meta http-equiv="Content-Type" content="text/html; charset=gbk"/>? ?? <script type="text/javascript">??? ? function openWindow(){? ? var new1=confirm...
2019-02-26