麻煩大神看下為什么點(diǎn)確定后不會(huì)彈出網(wǎng)頁?
<!DOCTYPE html>
<html>
?<head>
? <title> new document </title> ?
? <meta http-equiv="Content-Type" content="text/html; charset=gbk"/>? ?
? <script type="text/javascript">
? var zj="zai'jian"
??? function openWindow(){
??????? var qrk=confirm("是否打開新窗口?");
??????? if(qrk==true){
??????????? windows.open('http://idcbgp.cn',
??????????? '_blank',
??????????? 'width=600,height=400,top=100,left=0,menabar=no,toolbar=no'); ?
??????? }else{
?????????? document.write(zj)
??????? }
??? }
? </script>
?</head>
?<body>
?? ?? <input type="button" value="新窗口打開網(wǎng)站" onclick="openWindow()" />
?</body>
</html>
2019-06-05
看了兩遍才看出你window.open多打了個(gè)s 。- -
2019-06-06
你這是找不同啊,window 不是windows
2019-06-06
我這里是可以彈出來的呀,
2019-06-05
var zj="zai'jian" 加上;??