开发者

how can refresh a page remotly in javascript

is there a way to refresh a page remotly from another page in javascri开发者_运维问答pt. i want to force the browser to do a refresh when i go back to a page which was displayed before. im doing some code in a page and it should show some results in another page, when i go to the page where i suppose to see the results, i have to press F5 to see them... so please help :))


I think you are looking for location.reload(true) (reloads from the server) or location.reload() (reloads from cache)

<a href="link_here" onclick="location.reload(true)">click me</a>

Hope this helps.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜