YouTip LogoYouTip

Prop Reset Form

# Reset form Property [![Image 8: Reset Object Reference](#) Reset Object](#) * * * ## Definition and Usage The form property returns a reference to the form that contains the reset button. If successful, this property returns a form object. ## Syntax resetObject.form * * * ## Browser Support ![Image 9: Internet Explorer](#)![Image 10: Firefox](#)![Image 11: Opera](#)![Image 12: Google Chrome](#)![Image 13: Safari](#) The form property is supported in all major browsers. * * * ## Example ## Example Display the id of the form that the reset button belongs to: function displayResult(){ var x=document.getElementById("reset1").form.id; alert(x); } Email: [Try it yourself Β»](#) * * Reset Object](#)
← Prop Reset NameProp Hidden Value β†’