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