HTML <iframe> name Attribute
Definition and Usage
name
Attribute specifies the name of the iframe.
this name
Attribute can be used to refer to the element in JavaScript, or as <a> or <form> The value of the target attribute of the element, or as <input> or <button> The value of the formtarget attribute of the element.
Example
Act as a link target <iframe>:
<iframe src="demo_iframe.htm" name="iframe_a"></iframe> <a href="https://www.codew3c.com" target="iframe_a">codew3c.com</a>
Syntax
<iframe name="name">
Attribute Value
Value | Description |
---|---|
name | Specify the name of the <iframe>. |
Browser Support
Chrome | Edge | Firefox | Safari | Opera |
---|---|---|---|---|
Chrome | Edge | Firefox | Safari | Opera |
Support | Support | Support | Support | Support |