![]() And at one point the W3C Web APIs Working Group took up an issue to consider adding it to the specification for location.reload(). ![]() The history of it is: some version of Netscape Navigator added support for it, which apparently eventually got picked up in Firefox. So there's a lot of existing code which has it. A GitHub " location.reload(true)" search returns several hundred thousand results. You may, though, come across instances of location.reload(true) in existing code that was written with the assumption the force-reload effect occurs in all browsers. However, in all other browsers, any parameter you specify in a location.reload() call will be ignored and have no effect of any kind. Note: Firefox supports a non-standard forceGet boolean parameter for location.reload(), to tell Firefox to bypass its cache and force-reload the current document.
0 Comments
Leave a Reply. |