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