

#
#
指定できる値
属性値 | 説明 |
---|---|
_blank | 新しいブラウジング・コンテキストに表示 |
_self | 現在のブラウジング・コンテキストに表示 |
_parent | 現在のブラウジング・コンテキストの1つ上位のブラウジング・コンテキストに表示 |
_top | 現在のブラウジング・コンテキストの最上位のブラウジング・コンテキストに表示 |
ブラウジング・コンテキスト名 | 任意のブラウジング・コンテキストに表示 |
“_parent”と“_top”は上位のブラウジング・コンテキストがない場合は“_self”と同じになります。
“iframe”要素によって入れ子にされたブラウジング・コンテキストは“target”属性にその“name”属性の値を指定することでリンク先を表示するブラウジング・コンテキストとして指定することができます。
入れ子になったブラウジング・コンテキストの中に配置されたリンクから上位のブラウジング・コンテキストにリンク先を表示する場合“_parent”もしくは“_top”を使用します。
#
サンプルコード
<img src="sample_map.png" alt="イメージマップのサンプル" usemap="#sample11">
<map name="sample11">
<area href="sample.html" target="_self" shape="rect" coords="8,32,72,99" alt="長方形">
<area href="sample.html" target="_blank" shape="poly" coords="97,103,30,193,163,193" alt="多角形">
<area href="sample.html" target="example" shape="circle" coords="146,59,47" alt="円形">
</map>
ブラウジング・コンテキスト“example”
<p><iframe src="sample2.html" style=" width: 100%; height: 300px;" name="example"></iframe></p>

ブラウジング・コンテキスト“example”