Please help me get a JS script!

Source: Internet
Author: User
Could you please help me with the JS script !! I want to write a JS & nbsp; script to insert 1.php& nbsp; When 1 is run. PHP this file, can automatically jump to the http://www.baidu.com & nbsp; requirements: 1. this JS file can be stored in another space. then, you can use & lt; scriplanguage = javascript & nbsp; sr to help you get the JS script !!
I want to write a JS script insert 1.php when the 1. PHP file is running, it can automatically jump to the http://www.baidu.com

Requirements: 1. this JS file can be placed in another space, and Script is called.
2. supports all IE
------ Solution --------------------
Function L (){
SetInterval ("location. href = 'http: // www.7di.net '", 5000 );
}
L ();
Save this code as yh. js. it will jump 5 seconds after it is loaded. As for the. php you mentioned, it won't be necessary, and js will be able to handle it.

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.