Home>Article>Web Front-end> How to control page jump with javascript

How to control page jump with javascript

青灯夜游
青灯夜游 Original
2021-06-08 11:41:45 2478browse

Method: 1. Use "window.location.href="page address""; 2. Use the "window.history.back()" statement; 3. Use the "window.navigate()" statement; 4. Use the "self.location="address"" statement.

How to control page jump with javascript

The operating environment of this tutorial: windows7 system, javascript version 1.8.5, Dell G3 computer.

Several ways to implement page jump in Javascript

The first one: jump directly and add parameters

directly Jump without parameters:

Second: Return to the last preview interface

Tag nesting:

返回上一步 ">返回上一步

Third Type: The specified jump page is invalid for the frame. . .

The fourth way: specifying the own jump page is invalid for the frame. .

Application examples:

  

For more programming-related knowledge, please visit:Programming Video! !

The above is the detailed content of How to control page jump with javascript. 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