YouTip LogoYouTip

Prop Keygen Name

# Keygen name Property [![Image 8: Keygen Object Reference](#) Keygen Object](#) ## Example Return the value of the name attribute of the keygen field: var x = document.getElementById("myKeygen").name; _x_ Output: security [Try it Β»](#) * * * ## Definition and Usage The name property is used to set or return the value of the name attribute of a keygen field. The name property describes the value of the name attribute of the keygen field, which is used to reference the data after the form data has been submitted, or to reference it in a JavaScript script. **Note:** The name attribute only passes data to the backend server when the form is submitted if it is used within a form element. * * * ## Browser Support ![Image 9: Internet Explorer](#)![Image 10: Firefox](#)![Image 11: Opera](#)![Image 12: Google Chrome](#)![Image 13: Safari](#) The name property is supported by all major browsers, except Internet Explorer. * * * ## Syntax Return the name property: _keygenObject_.name Set the name property: _keygenObject_.name=_name_ ## Property Values | Value | Description | | --- | --- | | _name_ | Describes the name of the keygen field. | ## Technical Details | Return Value: | A string, representing the name of the keygen field. | | --- | * * * ## More Examples ## Example Change the value of the name attribute of the keygen field: document.getElementById("myKeygen").name="newName"; [Try it Β»](#) * * * ## Related Pages HTML Reference: (#) * * Keygen Object](#)
← Prop Keygen TypeProp Keygen Keytype β†’