refresh page after javascript function code example Example: How can I refresh a page with jQuery $('#something').click(function() { location.reload(); });