Js返回到上一页
1.history.go(-1),返回两个页面:历史。go(-2);
2. history.back().
3.window.history.forward()返回下一页
4.window.history.go(返回到哪个页面,或使用访问过的URL)
例:
response.Write('script language=javascript')
Response. Write ('If (! Confirm ('complete the task? )){ history . back(); }')
response.Write('/script')
response.Write('script language=javascripthistory.go(-1);/script')
页面跳转:onclick='窗口。位置。href=' list。aspx ' '
P.S.
小贴士(JS引用JS):
script type=text/javascript
!--
if (typeof SWFObject=='undefined') {
document.write('scr' + 'ipt type='text/javascript' src='/scripts/swfobject-1.5.js'/scr' + 'ipt');}
//--
/script