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

How to implement page jump using js

王林
王林Original
2020-05-08 15:18:494796browse

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>

Method two:

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

Method Three:

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

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!

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