HTML <iframe> nazwa Atrybut
Przykład
<iframe>, które działają jako cel dla linku:
<iframe src="demo_iframe.htm" name="iframe_a"></iframe>
<a href="https://www.w3schools.com" target="iframe_a">W3Schools.com</a>
Definicja i użycie
name
Atrybut określa nazwę elementu iframe .
Atrybut ten name
może być używany do odwoływania się do elementu w JavaScript lub jako wartość target
atrybutu elementu lub lub jako
<a>
atrybut elementu lub .<form>
formtarget
<input>
<button>
Obsługa przeglądarki
Attribute | |||||
---|---|---|---|---|---|
name | Yes | Yes | Yes | Yes | Yes |
Składnia
<iframe name="name">
Wartości atrybutów
Value | Description |
---|---|
name | Specifies a name for the <iframe> |
❮ Tag HTML <iframe>