reload w3schools code example Example 1: javascrpt refresh page location.reload(); Example 2: reload page javascript window.location.reload();