第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

為什么window.open打不開網(wǎng)頁?

為什么window.open打不開網(wǎng)頁?

qq_時光過客__0 2016-07-26 15:15:47
<!DOCTYPE HTML><html>?<head>? <title> new document </title> ?? <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> ??? <script type="text/javascript"> ?? ??? ? // 新窗口打開時彈出確認框,是否打開? ? function openWindow(){? ? ? ? ?var mydialog=confirm("是否打開");? ? ? ? ?if(mydialog==true){? ? ? ? ? ? var https myhttp;? ? ? ? ? ? ? ? https = "http://idcbgp.cn";? ? ? ? ? ? ? ? myhttp=prompt("請輸入網(wǎng)址",https);? ? ? ? ? ? ? ? // 通過輸入對話框,確定打開的網(wǎng)址,默認為 http://idcbgp.cn/? ? ? ? ? ? ?if(myhttp!=null){? ? ? ? ? ? ? ? ? //打開的窗口要求,寬400像素,高500像素,無菜單欄、無工具欄。? ? ? ? ? ? ? ? ?window.open(myhttp,'_blank',? ? ? ? ? ? ? ? ?'width=400,height=500,? ? ? ? ? ? ? ? ?menubar=no,toolbar=no');? ? ? ? ? ? ?}else;? ? ? ? ?}else;? ? ? ? }? </script>??</head>??<body>? ?<input type="button" value="新窗口打開網(wǎng)站" onclick="openWindow()" />??</body></html>
查看完整描述

1 回答

  • 1 回答
  • 0 關(guān)注
  • 1999 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

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

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動學習伙伴

公眾號

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號