check if page is reload in javascript code example Example: javascrpt refresh page location.reload();