HTMLIFrameElement: name property - Web APIs | MDN

Value

A string.

Examples

html

<iframe id="el" name="example"></iframe>

js

const el = document.getElementById("el");
console.log(el.name); // Output: "example"

Specifications

Specification
HTML
# dom-iframe-name

Browser compatibility

Help improve MDN

Learn how to contribute

This page was last modified on by MDN contributors.