最近中文字幕高清中文字幕无,亚洲欧美高清一区二区三区,一本色道无码道dvd在线观看 ,一个人看的www免费高清中文字幕

為了賬號安全,請及時綁定郵箱和手機立即綁定

為什么我的按鈕沒有反應

<script type="text/javascript">

? ? ? ?function openWindow(){
? ? ? ? ? ?var message=confirm("是否打開對話框");

? ? ? ? ? ?if (message=="true")
? ? ? ? ? ?{ window.open('http://yifanck.cn/',
? ? ? ? ? ? ? ? ? ?'width=400','height=500',menubar=no,toolbar=no}
? ? ? ?}
? ? ? ? ? ?else
? ? ? ? ? ?{alert("再見!");}
? ? ? ?}
? ?</script>
</head>
<body>
<input type="button" value="新窗口打開網站" onclick="openWindow()" />
</body>

正在回答

2 回答

知道了,謝謝哈

0 回復 有任何疑惑可以回復我~

<!DOCTYPE HTML>

<html>

<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<title>confirm</title>

? <script type="text/javascript">


? ? ? ?function openWindow(){

? ? ? ? ? ?var message=confirm("是否打開對話框");


? ? ? ? ? ?if (message==true){

? ? ? ? ? ?window.open('http://yifanck.cn/',

? ? ? ? ? ? ? ? ? ?'width=400','height=500',menubar=no,toolbar=no);

? ? ? ? ? ?}

? ? ? ?

? ? ? ? ? ?else

? ? ? ? ? ?{alert("再見!");

? ? ? ? ? ? ? ?

? ? ? ? ? ?}

? ? ? ?}

? ?</script>

</head>

<body>

<input type="button" value="新窗口打開網站" onclick="openWindow()" />

</body>

</html>

if語句中true不是字符串 ?別打“”

?window.open('http://yifanck.cn/',

? ? ? ? ? ? ? ? ? ?'width=400','height=500',menubar=no,toolbar ? ? ? ? ??);?????


0 回復 有任何疑惑可以回復我~

舉報

0/150
提交
取消

為什么我的按鈕沒有反應

我要回答 關注問題
微信客服

購課補貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號