JS jump page and open a new window mode

1, window.location.href = URL: to open a new page in the present form, the most common method;

2, window.open (URL): Open a new page in a new window;

3, location.replace (URL): pages of this window is replaced with a new page URL, can not fall back on after replacing pages;

4, localtion.assign (URL): This page is a window into a new page URL, similar to the previous method, but this method can fall back to the previous page.

Guess you like

Origin www.cnblogs.com/jiaoyixin/p/12029609.html