how to clear input filed data in html form when reload using html code example Example: javascript reset form document.querySelector("form").reset();