前台页面跳转方式:
1、带frame的跳转
a window.frames.frameName.location.href= url; //frameName代表某个frame,url代表跳转的路径。
b 打开一个新窗口,window.open(url,'frameName');
2、不带frame的跳转
a window.location.href=url;
b window.history.back(-1);//后退
c window.history.go(-1||-2||...);//后退到前一||二||。。。页面
d window.navigate(url);
e self.location = url;
f top.location = url;
g window.location.reload();//刷新当前页面
h parent.location.reload();//刷新父亲对象页面
i opener.location.reload();//刷新父窗口页面
1、带frame的跳转
a window.frames.frameName.location.href= url; //frameName代表某个frame,url代表跳转的路径。
b 打开一个新窗口,window.open(url,'frameName');
2、不带frame的跳转
a window.location.href=url;
b window.history.back(-1);//后退
c window.history.go(-1||-2||...);//后退到前一||二||。。。页面
d window.navigate(url);
e self.location = url;
f top.location = url;
g window.location.reload();//刷新当前页面
h parent.location.reload();//刷新父亲对象页面
i opener.location.reload();//刷新父窗口页面