HTML <base > doelkenmerk
Voorbeeld
Geef een standaarddoel op voor alle hyperlinks en formulieren op een pagina:
<head>
<base target="_blank">
</head>
Definitie en gebruik
Het target
attribuut specificeert het standaarddoel voor alle hyperlinks en formulieren op de pagina.
Dit attribuut kan worden overschreven door het
target
attribuut voor elke hyperlink/formulier te gebruiken.
Browserondersteuning
Attribute | |||||
---|---|---|---|---|---|
target | Yes | Yes | Yes | Yes | Yes |
Syntaxis
<base target="_blank|_self|_parent|_top">
Attribuutwaarden
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 <base>-tag