Refresh a page using jQuery

Imagine you want to refresh the current page after a certain user action. In fact, you don't need any special jQuery handling for this. Plain Javascript has location.reload(); function that you can use in your event handler.

Example: $('#refresh_button').click(function() { location.reload(); });

Note, however that this may load the page from cache. If you want to do a “full refresh” that fell fetch the page from the server again, do $('#refresh_button').click(function() { location.reload(true); });