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