久久久久久久视色,久久电影免费精品,中文亚洲欧美乱码在线观看,在线免费播放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. 站長資訊網(wǎng)
      最全最豐富的資訊網(wǎng)站

      window.location.href的用法是什么?

      window.location.href的用法是什么?

      window.location 對象可用于獲取當(dāng)前頁面地址(URL)并把瀏覽器重定向到新頁面。

      window.location 對象可不帶 window 前綴書寫。

      window.location.href

      window.location.href 屬性返回當(dāng)前頁面的 URL。

      在js中,window.location.href經(jīng)常用于頁面跳轉(zhuǎn)。它主要有如下幾種用法:

      1、在當(dāng)前頁面打開URL頁面。

      需要注意的是window.location.href=window.location.hrefwindow.location.reload()都是刷新當(dāng)前頁面。區(qū)別在于是否有提交數(shù)據(jù)。當(dāng)有提交數(shù)據(jù)時,window.location.Reload()會提示是否提交,window.location.href=window.location.href;則是向指定的url提交數(shù)據(jù)

      self.location.href="url" location.href="url" window.location.href="url" this.location.href="url"

      2、在父頁面打開URL頁面。

      parent.location.href="url"

      3、在頂層頁面打開URL頁面。

      top.location.href="url"

      推薦教程:js教程

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