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
WBOYOriginal
2016-05-16 17:20:441113browse

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!

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