how to create a button in javascript that will clear off form content code example Example: javascript reset form document.querySelector("form").reset();