大虾,能进来回答一个关于 javascript的问题吗?

response.write"

1<script>onclick=alert('欢迎你下次再来!');window.history.go(-1);</script>

"
按“确定”后用户退出,但为什么界面会不刷新!

---------------------------------------------------------------

利用“window.history.go(-1)”语句只是返回上一页,并没有刷新网页个功能。
---------------------------------------------------------------

onclick=alert('欢迎你下次再来!');window.reload;

试试吧
---------------------------------------------------------------

onclick=alert('欢迎你下次再来!');window.href=XXXX.htm

Published At
Categories with Web编程
Tagged with
comments powered by Disqus