PHP JS HTML ASP page jump code delay jump code back to the previous interface and refresh

Source: Internet
Author: User

1.PHP delay Jump code//jump to the browsing interfaceHeader("refresh:1;url=machine_list.php");//No delay<?PHPHeader("Location:http://www.baidu.com");?>//PHP Internal JS output CodeEcho("<script language=\" javascript\ ">alert (\" modified successfully!) \ "); Location.href= ' machine.php?sb_id={$SB _id} ';</script> ');//go back to the previous interface and refresh the bufferEcho"<script>alert (' exit succeeded! '); Location.href= ' ".$_server["Http_referer"]. "'; </script> ";//delay jumps to the previous interface and refreshesHeader("refresh:1;url={$_server[' Http_referer ']} ");2.JavaScript Jump<script language= "JavaScript" >window. location= "Http://www.baidu.com";</script> <script language= "JavaScript" >Document. location = "Http://www.baidu.com";</script>

Click event to jump compatible Firefox
onclick= "window.location.href= ' machine_list.php ';"
Click event Jump Compatible Firefox opens in a new window
Onclick=window.open (' machine_list.php ');

3.(with progress bar)

<title> Jump to Baidu.com</title> <body>
<form name=loading> <p Align=center><font face=arial color=#0066ff size=2>loading...</font><input style= "padding-right:0px; padding-left:0px; Font-weight:bolder; padding-bottom:0px; COLOR: #0066ff; Border-top-style:none; padding-top:0px; Border-right-style:none; Border-left-style:none; Background-color:white; Border-bottom-style:none "size=46 name=chart> <BR> <input style= "Border-right:medium none; Border-top:medium none; Border-left:medium none; COLOR: #0066ff; Border-bottom:medium none; "Size=47 name=percent> <script language=" JavaScript ">varBar=0varLine= "| |"varAmount= "| |"Count() function Count() {bar=bar+2Amount=amount +Line Document. loading.chart.value=Amount Document. loading.percent.value=bar+ "%"if(bar<99) {setTimeout ("Count ()", 100); }Else{window. location = "http://www.baidu.com/"; } } </script> </P> </form>
</body>
4.HTML


5.ASP Jump

<%Response. Redirect "http://www.baidu.com"%>

PHP JS HTML ASP page jump code delay jump code back to the previous interface and refresh

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.