how to make a javascript fucntion make the page reload code example Example: reload page javascript window.location.reload();