window.location.href and use window.open

## window.location.href and use window.open

`` `
Self.location.href =" / url "to open the current page URL of the page
location.href =" / url "to open the current page URL of the page
windows.location.href =" / url "URL of the current page to open the page in front of three the same usage.
this.location.href = "/ url" to open the current page URL of the page
parent.location.href = "/ url" open a new page in the parent page
top.location.href = "/ url" open a new page in the Front Page
`` `

open () method is used to open a new browser window or find a named window.

window.open(URL,name,specs,replace)

Details can be found:
https://blog.csdn.net/qq_41694906/article/details/88224861

Guess you like

Origin www.cnblogs.com/jiangjie88/p/12310007.html