script reload page javascript code example Example: jquery reload page $('#myElement').click(function() { location.reload(); });