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

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

View in English Always switch to English

HTMLAreaElement: target プロパティ

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月.

targetHTMLAreaElement インターフェイスのプロパティで、リンクされたリソースを表示する場所を示す文字列です。

これは <area> 要素の target 属性を反映します。

In this article

ターゲットを表す文字列。次の値を取り得ます。

html
<map name="image-map"> <area href="www.example.com" target="_top" alt="left" /> </map>
js
const areaElement = document.getElementsByName("image-map")[0].areas[0]; console.log(areaElement.target); // Output: "_top"

仕様書

Specification
HTML
# dom-area-target

ブラウザーの互換性

Enable JavaScript to view this browser compatibility table.

関連情報