how to write site refresh code in javascript code example Example: javascrpt refresh page location.reload();