久久久久久久视色,久久电影免费精品,中文亚洲欧美乱码在线观看,在线免费播放AV片

<center id="vfaef"><input id="vfaef"><table id="vfaef"></table></input></center>

    <p id="vfaef"><kbd id="vfaef"></kbd></p>

    
    
    <pre id="vfaef"><u id="vfaef"></u></pre>

      <thead id="vfaef"><input id="vfaef"></input></thead>

    1. 站長(zhǎng)資訊網(wǎng)
      最全最豐富的資訊網(wǎng)站

      javascript怎么關(guān)閉當(dāng)前窗口

      javascript中可以利用window對(duì)象的opener屬性、open()和close()方法來(lái)關(guān)閉當(dāng)前窗口,語(yǔ)法“window.opener=null;window.open('','_self');window.close();”。

      javascript怎么關(guān)閉當(dāng)前窗口

      本教程操作環(huán)境:windows7系統(tǒng)、javascript1.8.5版、Dell G3電腦。

      第一種:不帶任何提示關(guān)閉窗口的js代碼

      <a href="javascript:window.opener=null;window.open('','_self');window.close();">關(guān)閉</a>

      第二種:自定義提示關(guān)閉#

      <script language="javascript"> // 這個(gè)腳本是 ie6和ie7 通用的腳本 function custom_close(){ if  (confirm("您確定要關(guān)閉本頁(yè)嗎?")){ window.opener=null; window.open('','_self'); window.close(); } else{} } </script>   <input id="btnClose" type="button" value="關(guān)閉本頁(yè)" onClick="custom_close()" />

      【推薦學(xué)習(xí):javascript高級(jí)教程】

      贊(0)
      分享到: 更多 (0)
      ?
      網(wǎng)站地圖   滬ICP備18035694號(hào)-2    滬公網(wǎng)安備31011702889846號(hào)