1.如何在用javascript:history.back();返回后自动刷新
如何在用javascript:history.back();返回后自动刷新
评论信息或评论表单在同一个页面中,源码但是天空手机挂机源码免费alert发表成功后源码天空
,返回上一页时却无法自动刷新,源码量能线源码只有按了刷新菜单后才能显示出来新发表的天空投稿页面源码评论。
提交评论的源码脚本后台源码代码如下:[code]response.write "<script language='javascript'" & chr()
response.write "alert('评论提交成功!');" & Chr()
response.write "window.document.location.href='javascript:onclick=history.go(-1)';"&Chr()
response.write "</script" & Chr()
Response.End[/code]解决方法:response.write "<script language='javascript'" & chr()
response.write "alert('评论提交成功!天空unity编程源码');" & Chr()
response.write "window.document.location.href='这里改成上一页的源码URL地址';"&Chr()
response.write "</script" & Chr()
Response.End
response.write "<script language='javascript'" & chr()
response.write "alert('评论提交成功!');" & Chr()
response.write "window.document.location.href='"&Request.ServerVariables("HTTP_REFERER")&"';"&Chr()
response.write "</script" & Chr()
Response.Endok !后退刷新代码:
[code]<%Response.Expires = -1
Response.cachecontrol = "no-cache"%[/code]放到asp页的天空开头,再点后退,就会强制刷新..
源码2024-11-30 07:53
2024-11-30 06:56
2024-11-30 06:48
2024-11-30 06:43
2024-11-30 06:03
2024-11-30 05:17