HTML <baza> atrybut docelowy
Przykład
Określ domyślny cel dla wszystkich hiperłączy i formularzy na stronie:
<head>
<base target="_blank">
</head>
Definicja i użycie
Atrybut określa domyślny cel dla wszystkich hiperłączy i formularzy na target
stronie.
Ten atrybut można zastąpić, używając
target
atrybutu dla każdego hiperłącza/formularza.
Obsługa przeglądarki
Attribute | |||||
---|---|---|---|---|---|
target | Yes | Yes | Yes | Yes | Yes |
Składnia
<base target="_blank|_self|_parent|_top">
Wartości atrybutów
Value | Description |
---|---|
_blank | Opens the link in a new window or tab |
_self | Default. Opens the link in the same frame as it was clicked |
_parent | Opens the link in the parent frame |
_top | Opens the link in the full body of the window |
❮ Znacznik HTML <base>