Home > Web Front-end > JS Tutorial > 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
Release: 2016-05-16 18:32:09
Original
958 people have browsed it

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

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template