how to check if the page is reload javascript code example Example: javascript reload page location.reload();