how to reload a browser window in javascript code example Example: refresh window js window.location.reload();