HTML DOM Keygen form Property Last Updated : 01 Apr, 2022 Comments Improve Suggest changes Like Article Like Report The Keygen form property in HTML DOM is used to return the reference of the form containing the keygen element. It is a read-only property and returns the form object on success. Syntax: keygenObject.formReturn Value: It returns a reference to the form element containing the keygen element. It returns NULL if the keygen is not in the form. Example: This example shows the working of the Keygen form property. HTML <!DOCTYPE html> <html> <head> <style> h1 { color: green; } h2 { font-family: Impact; } body { text-align: center; } </style> </head> <body> <h1>GeeksforGeeks</h1> <h2>HTML DOM Keygen form Property</h2> <br> <form id="myGeeks"> Username: <input type="text" name="uname"> <br><br> Encryption: <keygen id="Geeks" form="myGeeks" name="secure" autofocus> <input type="submit"> </form> <button onclick="My_form()"> Return </button> <p id="test"></p> <script> function My_form() { var d = document.getElementById("Geeks").form.id; document.getElementById("test").innerHTML = d; } </script> </body> </html> Output: Supported Browsers: Google ChromeOperaFirefoxApple Safari Comment More infoAdvertise with us Next Article HTML DOM Keygen form Property M manaschhabra2 Follow Improve Article Tags : HTML HTML-DOM HTML-Property Similar Reads HTML | DOM Legend form Property The DOM Legend form Property is used for returning a reference to the form that contains the <legend> tag. It is read-only Property that returns a form Object on success. Syntax: legendObject.form Return value: A reference to <form> element containing the <legend> element. If <l 1 min read HTML | DOM Form name Property The DOM Form name Property is used to set or return the value of the name attribute in a form. The name attribute is required for each input field. If the name attribute is not specified in an input field then the data of that field would not be sent at all. Syntax: It is used to return the name pro 2 min read HTML DOM Label form Property The HTML DOM Label form Property is used for returning the reference to the form containing the Label Element. It is read-only Property that returns a form object on success. Syntax: labelObject.form Return Value: It returns a reference that contains the label and null if the label is not in the for 1 min read HTML DOM Keygen type Property The HTML DOM Keygen type property is used to return the type of form element containing the Keygen field. This property will always return âkeygenâ. Syntax: Return the keygen type property. keygenObject.typeReturn Values: It returns a string value that represents the type of form element's keygen fi 1 min read HTML DOM Keygen name Property The keygen name property in HTML DOM is used to set or return the value of the name attribute of the <keygen> element. The name attribute is used to specify the name of the keygen element. Syntax: It returns the name property. keygenObject.name It sets the name property. keygenObject.name = ke 1 min read HTML | DOM Object form Property The DOM Object form Property in HTML DOM is used to set or return the value of the form attribute of an <object> element. The form attribute is used to specify the one or more forms the <object> will contain. Syntax: It returns the form property.objObject.formIt is used to set the form p 1 min read HTML | DOM Input Image form Property The HTML DOM Input Image form Property is used for returning the reference to the form containing the input image field. It is a read-only property that returns a form object on success. Syntax: imageObject.form.id Return Values: It returns a string value which specify the reference of the form cont 1 min read HTML DOM Keygen disabled Property The HTML DOM Keygen disabled property is used to set or return a boolean value that indicates whether a Keygen element should be disabled or not. A disabled keygen field is unusable. This property is used to reflect the HTML disabled attribute. Syntax: Return the disabled property. KeygenObject.disa 1 min read HTML DOM Keygen keytype Property The HTML Keygen keytype property in HTML DOM is used to set or return the value of the keytype attribute of the keygen element. The keytype attribute is used to define the type of key that will be used. Syntax:It returns a keytype property.keygenObject.keytypeIt is used to set the keytype property.k 2 min read HTML DOM Keygen autofocus Property The keygen autofocus property in HTML DOM is used to set or return the value of the autofocus attribute of an <keygen> element. The autofocus attribute is used to define whether the keygen element gets automatically focused or not when the page loads or a refresh takes place. Syntax: Returns t 2 min read Like