第一种:
1 | <script language= "javascript" type= "text/javascript" > window.location.href= "login.jsp?backurl=" +window.location.href; </script> |
第二种:
1 | <script language= "javascript" > |
2 | <!-- lang: js --> |
3 | alert( "返回" ); |
4 | <!-- lang: js --> |
5 | window.history.back(-1); |
6 | <!-- lang: js --> |
7 | </script> |
第三种:
1 | <script language= "javascript" > |
2 | <!-- lang: js --> |
3 | window.navigate( "top.jsp" ); |
4 | <!-- lang: js --> |
5 | </script> |
第四种:
1 | <script language= "JavaScript" > |
2 | <!-- lang: js --> |
3 | self.location= 'top.htm' ; |
4 | <!-- lang: js --> |
5 | </script> |
第五种:
1 | <script language= "javascript" > |
2 | <!-- lang: js --> |
3 | alert( "非法访问!" ); |
4 | <!-- lang: js --> |
5 | top.location= 'xx.jsp' ; |
6 | <!-- lang: js --> |
7 | </script> |