Output form eigenschap
Definitie en gebruik
form
Eigenschap retourneert de verwijzing naar Element <output> verwijzing naar het formulier.
Deze eigenschap retourneert de formulierobject bij succes.
Opmerking:Deze eigenschap is alleen leesbaar.
Zie ook:
HTML referentiemanual:HTML <output> tag form attribute
HTML referentiemanual:HTML <output> tag
Voorbeeld
Haal het id van het formulier dat de <output> element bevat op:
var x = document.getElementById("myOutput").form.id;
Syntaxis
outputObject.form
Technische details
Return value: |
Reference to the <form> element containing the <output> element. Returns null if the <output> element is not in the form. |
---|
Browser support
The numbers in the table indicate the first browser version that fully supports this attribute.
Chrome | Edge | Firefox | Safari | Opera |
---|---|---|---|---|
Chrome | Edge | Firefox | Safari | Opera |
10.0 | Not supported | 4.0 | 5.1 | 11.0 |