已采納回答 / Ta丶知道答案
函數(shù)用錯了,js中沒有contxt這個函數(shù),contxt是1-9自己寫的一個函數(shù)。這里要用confirm<...圖片...>
2019-03-09
已采納回答 / 無味蘿卜
window.open('http://idcbgp.cn',? '_blank', 'width=600, height=400, top=100, left=0')你的window.open()中第三個樣式設(shè)置參數(shù)沒有用引號括起來。left=0后不用加","。
2019-03-09
已采納回答 / 啥哈
var mynum;是聲明一個變量mychar="javascript"是對這個變量賦值,javascript不是數(shù)字要加雙引號var mynum=8是即聲明又賦值,8是數(shù)字不要加雙引號
2019-03-06
已采納回答 / 慕神0996557
大兄弟,函數(shù)格式都寫錯了,你只寫了函數(shù)名以及參數(shù)部分,函數(shù)體呢? function Changecolor() {你要執(zhí)行的函數(shù)代碼}
2019-03-05
已采納回答 / qq_瑪雅小薩_0
你打開新窗口時寫錯了,應(yīng)該是
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://idcbgp.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