How to Refresh the Page using jQuery?

Below is a sample sourecode snippet that demonstrates how to reload the page using jQuery.

How to Refresh the Page using jQuery?

$('#button1').click(function() {

location.reload(true);

});

1 Comment

  • This does not reloads the page using jQuery, it reloads the page using the native JavaScript location object. You’re using jQuery to just select a button and add an event listener to it.

Leave Your Comment