How to refresh or reload a page automatically in jQuery
How to refresh or reload a page automatically in jQuery
Here in this tutorial, you will be learning two different methods for refreshing or reloading a page.
In the first method, I’ll use a button control and its click event to trigger the page refresh. This is a manual process.
In the second method, I’ll use a timer to trigger refreshing or reloading a page. This is an automatic process.
To achieve this I am using the location.reload() method inside the $(document).ready() function. I have written scripts one each for manual process and for automatic process.
In the second example, We are using the SetInterval() method to call the .reload() function using jquery.
How to reload page after some time in jQuery
Thanks forr reading.
© Copyright - 2018 - 2023 | All rights reserved at Funda of Web IT