Of meta tags js implementation PHP implementation
- 2020-03-30 03:02:02
- OfStack
1. Meta tag implementation
Just add the following sentence in the head and jump to the target page after the current page stays for 0.1 second
<meta http-equiv="refresh" content="0.1; url=http://jb51.net/">
2. Javascript implementation
Method one:
This method is commonly used
window.location.href = "http://jb51.net/";
Method 2:
self.location = "http://jb51.net/";
Method 3:
top.location = "http://jb51.net/";
Method 4:
It only works for the Internet explorer series of browsers
window.navigate("http://jb51.net/");
3. PHP implementation
<?php
header("Location: http://jb51.net/");
?>
Ok, so those are some of the ways to jump from one page to the next.