如何返回jsp中的上一页
1.& lta href = " JavaScript:history . back(-1)" & gt;回到上一页
2.& lta href = " JavaScript:;"onClick = " JavaScript:history . back(-1);"& gt回到上一页
3.如果是纽扣做的,那就是:
& ltinput type = " button " name = " Submit " onclick = " JavaScript:history . back(-1);"Value= "返回上一页" >
4.如果用图片,那就是:
& lta href = " JavaScript:;"onClick = " JavaScript:history . back(-1);"& gt& ltimg src = " image path " border = " 0 " title = "返回上一页" > & lt/a & gt;
5.& lta href = " JavaScript:history . go(-1);"& gt转到上一页
页面跳转:onclick = " window . location . href = ' list . PHP ' "
6.使用js自动返回到上一页。
几秒钟后自动返回上一页代码:(加两个头,3000表示3秒)
& ltscript type = " text/JavaScript " & gt;setTimeout(" history . go(-1)",3000);& lt/script & gt;
& lt脚本语言= javascript & gt
函数go()
{
window . history . go(-1);
}
setTimeout("go()",3000);
& lt/SCRIPT & gt;