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

How to implement page jump using js

王林
Release: 2020-05-08 15:18:49
Original
4799 people have browsed it

How to implement page jump using js

The three methods of js to achieve page jump are as follows:

Method one:

<script language="javascript" type="text/javascript">
window.location.href="jb51.jsp?backurl="+window.location.href;
</script>
Copy after login

Method two:

<script language="javascript">
alert("返回");
window.history.back(-1);
</script>
Copy after login

Method Three:

<script language="javascript">
window.navigate("jb51.jsp");
</script>
Copy after login

Recommended tutorial: js entry tutorial

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

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