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