how to auto refresh a page using javascript code example Example: javascrpt refresh page location.reload();