Home >Web Front-end >JS Tutorial >How to implement page jump in js

How to implement page jump in js

WJ
WJOriginal
2020-05-30 18:01:322724browse

How to implement page jump in js

#How to implement page jump in js?

js can use "window.location.href="Jump address"" to implement page jump Method ;

Specific The usage is as follows:

First create an html file and fill in the following code:

window.location.href = 'nextPage.php';

Then run the file on the browser to jump to the page. change.

Related references:JS Manual

The above is the detailed content of How to implement page jump in js. For more information, please follow other related articles on the PHP Chinese website!

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