javascript get eveent when page reloads code example Example: reload page javascript window.location.reload();