Properti HTML DOM accesskey
Definisi dan Penggunaan
set properti accesskey atau mengembalikan tombol radio untuk mengakses cara pintas.
Catatan: Gunakan Alt + accesskey memberikan fokus ke elemen telah menyisihkan pintas.
tatabahasa
HTMLElementObject.accessKey=accessKey
Dukungan Browser
Semua browser utama mendukung properti accesskey
contoh
contoh
Contoh berikut mengembalikan pintas tombol radio:
<html>
<head>
<script>
function accesskey()
{
document.getElementById('w3s').accessKey="w"
}
</script>
</head>
<body onload="accesskey()">
<a id="w3s" href="http://www.w3cschool.cc/">W3Cschool</a>
</body>
</html>
<head>
<script>
function accesskey()
{
document.getElementById('w3s').accessKey="w"
}
</script>
</head>
<body onload="accesskey()">
<a id="w3s" href="http://www.w3cschool.cc/">W3Cschool</a>
</body>
</html>
Coba »