HTML <base> target atribut
Příklad
Zadejte výchozí cíl pro všechny hypertextové odkazy a formuláře na stránce:
<head>
<base target="_blank">
</head>
Definice a použití
Atribut target
určuje výchozí cíl pro všechny hypertextové odkazy a formuláře na stránce.
Tento atribut lze přepsat pomocí
target
atributu pro každý hypertextový odkaz/formulář.
Podpora prohlížeče
Attribute | |||||
---|---|---|---|---|---|
target | Yes | Yes | Yes | Yes | Yes |
Syntax
<base target="_blank|_self|_parent|_top">
Hodnoty atributů
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 |
❮ HTML tag <base>