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