Several Methods for webpage page Jump

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.