Home > Web Front-end > JS Tutorial > JS Tutorial: Introduction to the differences in how to use window.location_javascript skills

JS Tutorial: Introduction to the differences in how to use window.location_javascript skills

WBOY
Release: 2016-05-16 17:20:44
Original
1116 people have browsed it

window.location.href=&http://www.webjx.com/javascript/ldquo;url": Change the url address;
window.location.replace("url"): Replace the address with a new url, this method Replace the item currently cached in the history (client) by specifying the URL. Therefore, after using the replace method, you cannot access the replaced URL through "forward" and "back". This feature is very useful for making some transition pages. !
window.location.reload(): Force refresh the page and re-request from the server!

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