Today I have summarized several page Jump methods, which are implemented using meta Tags, javascript, and php. Let's share them one by one.
1. meta tag implementation
You only need to add the following sentence to the head. After staying on the current page for 0.1 seconds, you can jump to the target page.
| 1 |
<meta http-equiv="refresh" content="0.1; url=http://beyondweb.cn/"> |
2. Javascript implementation
Method 1:
This method is commonly used.
| 1 |
window.location.href = "http://beyondweb.cn/"; |
Method 2:
| 1 |
self.location = "http://beyondweb.cn/"; |
Method 3:
| 1 |
top.location = "http://beyondweb.cn/"; |
Method 4:
It is only valid for IE browsers and is not practical.
| 1 |
window.navigate("http://beyondweb.cn/"); |
3. php implementation
| 123 |
<?php header("Location: http://beyondweb.cn/");?> |
OK. The above are several page Jump methods summarized today.