In this post, we will see how to refresh a page using jQuery.
You can use location.reload() method of jQuery to reload the page. It is same as pressing f5 for refreshing a page.
Let me know if it works for your browser or not.
You can use location.reload() method of jQuery to reload the page. It is same as pressing f5 for refreshing a page.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
<title>Reload/Refresh a Page in jQuery</title> <script type="text/javascript" src="http://code.jquery.com/jquery-latest.js"> </script> <script type="text/javascript"> $(document).ready(function() { $('#reload').click(function() { location.reload(); }); }); </script> <input id="reload" type="button" value="reload"> |
Was this post helpful?
Let us know if this post was helpful. Feedbacks are monitored on daily basis. Please do provide feedback as that\'s the only way to improve.