← 返回首页
HTMLIFrameElement: name プロパティ - Web API | MDN

このページはコミュニティーの尽力で英語から翻訳されました。MDN Web Docs コミュニティーについてもっと知り、仲間になるにはこちらから。

View in English Always switch to English

HTMLIFrameElement: name プロパティ

Baseline Widely available

This feature is well established and works across many devices and browser versions. It’s been available across browsers since 2015年7月.

nameHTMLIFrameElement インターフェイスプロパティで、<iframe> 要素の name 属性を反映し、<iframe> 要素の固有の名前を示す文字列値です。

In this article

文字列です。

html
<iframe id="el" name="example"></iframe>
js
const el = document.getElementById("el"); console.log(el.name); // 出力: "example"

仕様書

Specification
HTML
# dom-iframe-name

ブラウザーの互換性

Enable JavaScript to view this browser compatibility table.