jquery on document refresh code example Example: refresh page on button click jquery $('#something').click(function() { location.reload(); });