Kamis, 29 Juli 2021

How to reload/refresh a page using JavaScript and jQuery? Example

JavaScript provides several ways to reload or refresh an HTML page but the standard way to do this job is by using window.location object. This object provides a reload() method which instructs the browser to reload the page. The browser can do it from its cache or from the server, which depends upon optional parameter i.e. reload(true) will reload the page from the server but reload(false) will only reload the page from the browser's cache, which may or may not represent the current version at the server.

Lorem ipsum is simply dummy text of the printing and typesetting industry.

Comments


EmoticonEmoticon