Get the id of the form the <object> element belongs to:
The result of x will be:
The form property sets or returns the value of the form attribute of an <object> element.
The form attribute specifies one or more forms the <object> element belongs to.
Property | |||||
---|---|---|---|---|---|
form | Yes | Yes | Yes | Yes | Yes |
Note: The form property is supported in all major browsers. However, the form attribute of the <object> element is not supported in any of the major browsers.
Return the form property:
Set the form property:
Value | Description |
---|---|
form_id | Specifies the <form> element the <object> element belongs to. The value of this attribute must be the id attribute of a <form> element in the same document. |
Return Value: | A String, representing one or more forms the object belongs to |
---|
HTML reference: HTML <object> form attribute