开发者

how can refresh a page remotly in javascript

开发者 https://www.devze.com 2022-12-16 02:40 出处:网络
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

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

精彩评论

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

关注公众号