location.reload() javascript where to put it code example Example: refresh window js window.location.reload();