js实现页面跳转的几种方式

js实现页面跳转的几种方式

  1. window.location.href
1
window.location.href="jb51.jsp?backurl="+window.location.href;
  1. window.history.back
1
window.history.back(-1); //返回上一页
  1. window.navigate
1
window.navigate("jb51.jsp"); 
  1. self.location
1
self.location='jb51.htm'; 
  1. top.location
1
top.location='jb51.jsp';