Home >Web Front-end >JS Tutorial >Collection of javascript page jump methods_javascript skills

Collection of javascript page jump methods_javascript skills

WBOY
WBOYOriginal
2016-05-16 18:54:481170browse

[Ctrl A Select all Note: If you need to introduce external Js, you need to refresh to execute
]
window.location The difference with window.open

window.location = "http://www.jb51.net" There is a back function after jumping
window.location.replace("http://www.jb51 .net") There is no back function after jumpingwindow.open("http://www.jb51.net") To open the link in a new window
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