HTML <object> form Atribut

❮ HTML tag <object>

Příklad

Element <object> umístěný mimo formulář (ale stále součástí formuláře):

<form action="/action_page.php" id="form1">
  First name: <input type="text" name="fname"><br>
  <input type="submit" value="Submit">
</form>

<object data="pic_trulli.jpg" width="300" height="200"></object>

Definice a použití

Atribut formurčuje formu, do které objekt patří.

Hodnota tohoto atributu se musí rovnat idatributu <form> prvku ve stejném dokumentu.


Podpora prohlížeče

Attribute
form Not supported Not supported Not supported Not supported Not supported

Syntax

<object form="form_id">

Hodnoty atributů

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.

❮ HTML tag <object>