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