Browser support for [removed].reload(true)

后端 未结 2 519
情话喂你
情话喂你 2020-12-18 20:33

window.location.reload() is supported in all browsers, according to w3schools

But what\'s with window.location.reload(true) which reloads t

相关标签:
2条回答
  • 2020-12-18 21:25

    reload() is supposed to accept an argument which tells it to do a hard reload, ie, ignoring the cache:

    location.reload(true);
    

    Note : I don`t think just saying that it is supported with FF is right, here it is clearly mentioned that it is supported by other browser as well.

    Check out below links for more information

    how-can-i-refresh-a-page-with-jquery

    Reload without cache

    Location.reload

    Reload method

    refresh-reload-page-using-jquery

    Is Window.location.reload(true)?

    Little Extra information in this question

    difference-between-window-location-href-window-location-href-and-window-location

    Hope this helps

    0 讨论(0)
  • 2020-12-18 21:26

    location.reload() takes no arguments in the specification, so do not rely on it. It is implemented in some browsers though, including Mozilla Firefox.

    0 讨论(0)
提交回复
热议问题