為什么不行?誰幫忙看看
<!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 oppen=confirm("是否打開新的窗口?")
? ? if(oppen==trum)
? ? {window.open('http://idcbgp.cn/','width=400,
? ? height=500,menubar=no,toolbar=no')
? ? }
? ? else
? ? {window.close}
? ? }
? </script>?
?</head>?
?<body>?
? <input type="button" value="新窗口打開網(wǎng)站" onclick="openWindow()" />?
?</body>
</html>
2019-03-09
冒號用的是中文 的,改一下就好了
2019-03-07
?else
? {window.close}? ? ? ?---->{window.close( );}
2019-03-02
你的heigth的那行和width斷開了
2019-02-26
你拼寫錯了。