js頁面跳轉重新整理

2021-09-30 20:12:19 字數 584 閱讀 1232

location.replace(location.href);

window.location.href(「01.html」);//ie有效,ff無效

window.location.href=「01.html」; //ie有效,ff有效效

window.location=「01.html」; //ie有效 ff有效

location.href=「01.html」; //ie有效 ff有效

location.href=「01.html」; //ie有效 ff 有效

self.location.href="/url" 當前頁面開啟url頁面

ocation.href="/url" 當前頁面開啟url頁面

windows.location.href="/url" 當前頁面開啟url頁面,前面三個用法相同。

this.location.href="/url" 當前頁面開啟url頁面

parent.location.href="/url" 在父頁面開啟新頁面

top.location.href="/url" 在頂層頁面開啟新頁面

window.history.back(-1);

頁面跳轉重新整理

部分總結 僅供參考 window.location.reload window.location.reload 可以直接寫在js中 1.history.go 1 返回兩個頁面 history.go 2 2.history.back 4.window.history.go 返回第幾頁,也可以使用訪問過...

重新整理和頁面跳轉

所有頭資訊都是隨著請求和回應自動傳送到伺服器端 客戶端 在 response 中乙個比較常用 的頭資訊就是重新整理的指令,可以完成定時重新整理的功能。resp.setheader refresh 2 對於重新整理的頭資訊,除了定時的功能外,還具備了定時跳轉的功能,可以讓乙個頁面定時跳轉到一 個指定的...

總結JS實現頁面的重新整理和跳轉

使用iframe 彈出子頁面重新整理父頁面iframe parent.location.reload 彈出子頁面 window.opener.location.reload 這個方法是我嘗試過的,可以成功實現我想要的功能,其他的沒有嘗試,不能保證絕對的正確.子視窗重新整理父視窗 self.windo...