嗨我如何使用javascript在后退按钮上重新加载页面...任何人请帮助我... [英] Hi How can I reload the page on back button press using javascript...Anyone please help me...

查看:55
本文介绍了嗨我如何使用javascript在后退按钮上重新加载页面...任何人请帮助我...的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要重新加载页面,同时按下后退按钮...任何人都可以帮我解决?

解决方案

尝试使用

windows.history.forward()

Windows历史记录操作 [ ^ ]

使用windows.history.forward( ),将用户返回到重新加载的同一页面。

希望这会有所帮助。

如果有的话,回复你的查询。

谢谢。

I need to reload the page while press the back button...can anyone help me to solve?

解决方案

Try using
windows.history.forward()
Windows History Manipulation[^]
Using windows.history.forward(), returns the user back to the same page reloading that.
Hope this helps.
Post back your queries if any.
Thanks.


这篇关于嗨我如何使用javascript在后退按钮上重新加载页面...任何人请帮助我...的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆