第一次加载传个参数,
加载后检测,如果有参数,就重新加载并去掉参数
例:asp的
index.asp?refresh=trueif request.querystring("refresh") = "true" then
response.redirect("index.asp")
end if
加载后检测,如果有参数,就重新加载并去掉参数
例:asp的
index.asp?refresh=trueif request.querystring("refresh") = "true" then
response.redirect("index.asp")
end if
不太明白
response.redirect "index.asp?refrash=true"
end if%>
5555
无语了
难道不懂request这个对象?
{
window.location=window.location+"&refreshed";//我不知道你的URL是怎么样的,加?还是加&,自己判断吧。
}
原理就是这样。修行看个人啦。@_@
{
reponse.Redirect("index.asp")
}可不可以问一下,这样有什么意义啊?
我的URL是这样的:
http://www.bulux.cn/products.asp?id=410
请教一下,进入这个页面后,怎么才能立即刷新一次呢???
<Script>
function reurl(){url = location.href; //把当前页面的地址赋给变量 urlvar times = url.split("?"); //分切变量 url 分隔符号为 "?"if(times[1] != 1){ //如果?后的值不等于1表示没有刷新url += "?1"; //把变量 url 的值加入 ?1self.location.replace(url); //刷新页面}
}onload=reurl</script>
原理充分利用地址栏可带参数的选项,用脚本来取得页面间的传递参数,并不需要后台程序的支持。
<code>
if(window.location.href.indexOf("refreshed") < 0){
window.location+="&refreshed";
}
</code>