location.reload vs window.location.reload code example Example: reload page javascript window.location.reload();