javascript function to reload the page code example Example: refresh window js window.location.reload();