This article is a mirror article of machine translation, please click here to jump to the original article.

View: 9320|Reply: 0

[JavaScript] How to use JavaScript to implement page jumping

[Copy link]
Posted on 12/30/2014 10:41:23 AM | | |

The first type:
    <script language="javascript" type="text/javascript">
           window.location.href="login.jsp?backurl="+window.location.href;
    </script>

The second type:
    <script language="javascript">
        alert("return");
        window.history.back(-1);
   </script>

The third type:
   <script language="javascript">
        window.navigate("top.jsp");
  </script>

The fourth type:
   <script language="JavaScript">
          self.location='top.htm';
   </script>

The fifth type:
   <script language="javascript">
          alert("Illegal access!") );
          top.location='xx.jsp';
   </script>





Previous:Click the input button to jump to the specified URL code
Next:1 yuan annual fee red diamond lottery event, 4 lucky draw chances. 100% winning
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com