Self. Location. href = "/url" the current page opens a new page, which is the same as the default location. href, windows. Location. href, or this. Location. href.
Parent. Location. href = "/url" opens a new page on the parent page.
Top. Location. href = "/url" opens a new page on the top page.
Top. Location. href = "/url"
It means opening the URL on the top-level page
Self. Location. href = "/url"
It is said that only the URL address opened on this page is
Parent. Location. href = "/url"
The URL address opened in your window
There should be another this. Location. href = "/url"
The usage is consistent with that of self.
In addition, if a custom frame exists in the page,
You can also change the parent self top to the custom frame name.
The effect is to open the URL address in the custom frame window.
If (window! = Top ){
Top. Location. href = "/login. aspx ";
}