我是在ASP。NET中做的。用C#做开发,使用的语句是:
Response.Write("<SCRIPT language=JavaScript>history.back(1)</SCRIPT>");
但是不能达到我的要求。
请各位大哥大捷帮忙看一下。
谢谢!
history.go(-1)
或
history.back()
history.go(-1)
或
history.back()
你看看运行后的SOURCE包括了你Back的代码了吗??
history.go(-1)
或
history.back()
这两种一定可以,应该你的代码生成出错了吧?
<input onclick=history.go(-1) type=submit value=后退 name=Submit2>
<input onclick=history.go(-1) type=button value=后退 name=button1>
function go_back(){
var back_url = window.document.referrer ;
if(back_url != "" && back_url != null){
window.location.href = back_url;
}
}
<input type="button" name="goBack" value="Back" onClick="go_back()">
在框架里,IE5.0下,history.go(-1) 和 history(back)
就是会没响应
我的意思是在框架里,要指明 对象.history.go(-1)