how to refresh the page using javascript in php code example Example: jquery reload page $('#myElement').click(function() { location.reload(); });