how to reload the html widow in javascript code example Example: refresh window js window.location.reload();