Home  >  Article  >  Web Front-end  >  The difference between javascript opening page window.location and window.open_Basic knowledge

The difference between javascript opening page window.location and window.open_Basic knowledge

WBOY
WBOYOriginal
2016-05-16 18:32:09932browse

window.location = "http://www.xxxxxxxx.net" There is a back function after the jump
In fact, it should be window.location.href
window.location.replace("http://www.xxxxxxxx. net") There is no back function after jumping

window.open("http://www.xxxxxxxx.net") To open a link in a new window
This is generally used for simple pop-up pages. Now Basically all are blocked

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn