try{alert("1");history.go(-5)}
catch(e)
{alert("2");
try{history.go(-4)}
catch(e){
try{history.go(-3)}
catch(e){
try{history.go(-2)}
catch(e){
try{history.back()}
catch(e){alert("3")}}}}}
异常捕获不到只是弹出了1后面就没动静了页面也不返回
哪个大侠给给讲讲这个的异常捕获怎么弄。或者怎么实现这个功能。
catch(e)
{alert("2");
try{history.go(-4)}
catch(e){
try{history.go(-3)}
catch(e){
try{history.go(-2)}
catch(e){
try{history.back()}
catch(e){alert("3")}}}}}
异常捕获不到只是弹出了1后面就没动静了页面也不返回
哪个大侠给给讲讲这个的异常捕获怎么弄。或者怎么实现这个功能。
Web 开发常用手册DHTML 参考手册 -- 参考这里
http://download.csdn.net/source/308913JScript 语言参考
http://download.csdn.net/source/308916CCS 样式表中文手册
http://download.csdn.net/source/304124
try{
alert("1");
istory.go("ddd");
}
catch(e)
{alert("2");
try{history.go(-4);}
catch(e){
try{history.go(-3);}
catch(e){
try{history.go(-2);}
catch(e){
try{history.back();}
catch(e){alert("3")}}}}}
</script>
看看这个地名你就明白了
在B页面有按钮点击后刷新页面的。只是history.back() 不能完全实现。。因为不知道用户点击了几次(最多是5次)。。功能是不管用户点击了几次(0-5),只要点击返回的时候能返回到A页面