Latest web development tutorials

HTML iframe name attribute

HTML iframe tag Reference Manual HTML <iframe> tag

Examples

As the link destination of <iframe>:

<iframe src="demo_iframe.htm" name="iframe_a"></iframe>

<a href="http://www.w3cschool.cc" target="iframe_a">w3big.com</a>

try it"

Browser Support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

All major browsers support name attribute.


Definition and Usage

name attribute specifies the <iframe> name.

element name attribute name used to refer to elements in JavaScript or as <a> or <form> element attribute value target, or as a value <input> or <button> of formtarget property.


Differences between HTML 4.01 and HTML5

no.


Differences between HTML 4.01 and XHTML

In XHTML, name attribute to waste, and will be removed. Please use the id attribute instead.


grammar

<iframe name="name">

Property Value

描述
name 规定 <iframe> 的名称。


HTML iframe tag Reference Manual HTML <iframe> tag