Obszar docelowy Nieruchomość
Przykład
Zmień cel dla określonego obszaru na mapie obrazu:
document.getElementById("venus").target = "_blank";
Definicja i użycie
Właściwość target ustawia lub zwraca wartość atrybutu target obszaru.
Atrybut target określa, gdzie otworzyć połączony dokument.
Obsługa przeglądarki
Property | |||||
---|---|---|---|---|---|
target | Yes | Yes | Yes | Yes | Yes |
Składnia
Zwróć właściwość docelową:
areaObject.target
Ustaw właściwość docelową:
areaObject.target = "_blank|_self|_parent|_top|framename"
Value | Description |
---|---|
_blank | Open the linked document in a new window |
_self | Open the linked document in the same frame as it was clicked (this is default) |
_parent | Open the linked document in the parent frameset |
_top | Open the linked document in the full body of the window |
framename | Open the linked document in a named frame |
Szczegóły techniczne
Wartość zwrotu: | String, oznaczający, gdzie otworzyć połączony dokument |
---|
Więcej przykładów
Przykład
Uzyskaj cel określonego obszaru na mapie obrazu:
var x =
document.getElementById("venus").target;
Powiązane strony
Odniesienie HTML: atrybut docelowy HTML <obszar>
❮Obszar obiektu