window.parent.window.location.href=url;
第一种: window.location.href="login.jsp?backurl="+window.location.href;
第二种:
alert("返回"); window.history.back(-1);
第三种:
window.navigate("top.jsp");
第四种:
self.location='top.htm';
第五种:
alert("非法访问!");
top.location='xx.jsp';
还有一种方法可以通过js进行表单提交
<form name=form1 onkeydown= "if(event.keyCode==13){form1.submit()} ">
</form>