First type:
window.location.href= ' http://www.111cn.net/';
JS Code
| The code is as follows |
Copy Code |
<script language= "javascript" type= "Text/javascript" > window.location.href= "Login.jsp?backurl=" +WINDOW.LOCATION.HREF; </script> |
Second: Skip to previous history
Window.history.back (-1);
JS Code
| The code is as follows |
Copy Code |
<script language= "JavaScript" > Alert ("return"); Window.history.back (-1); </script> |
The third type:
Window.navigate ("Http://www.111cn.net");
| The code is as follows |
Copy Code |
<script language= "JavaScript" > Window.navigate ("top.jsp"); </script> |
The fourth kind:
self.location= ' http://www.111cn.net ';
| The code is as follows |
Copy Code |
<script language= "JavaScript" > self.location= ' top.htm '; </script> |
The fifth kind:
top.location= ' http://www.111cn.net ';
| code is as follows |
copy code |
| <script language= "JavaScript" > alert ("Illegal access!") "); top.location= ' xx.jsp '; </script> |