javascript function to reload a web page code example Example: reload page javascript window.location.reload();