Atribut target <dasar> HTML
Contoh
Tentukan target default untuk semua hyperlink dan formulir di halaman:
<head>
<base target="_blank">
</head>
Definisi dan Penggunaan
Atribut target
menentukan target default untuk semua hyperlink dan formulir di halaman.
Atribut ini dapat diganti dengan menggunakan
target
atribut untuk setiap hyperlink/form.
Dukungan Peramban
Attribute | |||||
---|---|---|---|---|---|
target | Yes | Yes | Yes | Yes | Yes |
Sintaksis
<base target="_blank|_self|_parent|_top">
Nilai 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 |
tag <dasar> HTML