HTML iframe name Attribute
HTML <iframe> tag
Definition and Usage
The name attribute is an identification for the URL (web resource).
This attribute is used together with the "target" attribute in links to
specify which frame (or in this case, iframe) the link should be opened in. It
can also be used for scripting purposes.
Syntax
Syntax Example
Attribute Values
Value |
Description |
id_name |
Specifies the name of the iframe. Naming
rules:
- Must begin with a letter A-Z or a-z
- Can be followed by: letters (A-Za-z), digits (0-9), hyphens
("-"), underscores ("_"), colons (":"), and periods (".")
- Values are case-sensitive
|
Browser Support

The attribute is supported in all major browsers.
Example
Source |
Output |
<iframe src="demo_iframe.htm"
name="iframe_a"></iframe><br />
<a href="http://www.w3schools.com"
target="iframe_a">W3Schools.com</a>
|
W3Schools.com
|
Try-It-Yourself Demos
iframe name
attribute example
Specify a name for the iframe.
HTML <iframe> tag
 |

|
|
See why there are 20,000+ Ektron integrations worldwide.
Request an INSTANT DEMO or download a FREE TRIAL today. |
|
|
|