![]() So a boolean parameter is not part of the current specification for location.reload() - and in fact has never been part of any specification for location.reload() ever published. And at one point the W3C Web APIs Working Group took up an issue to consider adding it to the specification for location.reload(). There are two types of reloading a current page. Asserts are javascript, HTML, and style from a server. ![]() The history of it is: some version of Netscape Navigator added support for it, which apparently eventually got picked up in Firefox. Reloading or refreshing a page involves retrieving data and asserts from either from cache or server. ![]() This JavaScript is useful when you have a page that needs regular refreshing but where youd also like to. So there's a lot of existing code which has it. In this issue I have a piece of code for you. A GitHub " location.reload(true)" search returns several hundred thousand results. Are you using asp. ![]() To refresh use: location.reload () This might still not solve your problem. 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. 4 Answers Sorted by: 2 Well you are not actually refreshing the page. 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. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |