티스토리 뷰

브라우저별로 단축키에 접근하는 방법이 다르다.

BrowserWindowsLinusMac
Internet Explorer[Alt] + accesskeyN/A
Chrome[Alt] + accesskey[Alt] + accesskey[Control][Alt] + accesskey
Firefox[Alt][Shift] + accesskey[Alt][Shift] + accesskey[Control][Alt] + accesskey
Safari[Alt] + accesskeyN/A[Control][Alt] + accesskey
OperaOpera 15 or newer : [Alt] + accesskey
Opera 12.1 or older : [Shift][Esc] + accesskey



accesskey 속성은 HTML 4.01 과 HTML 5 에서 적용되는 요소들에 대해서 조금 차이가 있다.

HTML 5 에서는 거의 모든 요소에 accesskey 속성을 적용할수 있지만,
HTML 4.01 에서는 다음에 제시된 요소에만 accesskey 속성을 사용할 수 있다.
<a> , <area> , <button> , <input> , <label> , <legend> , <textarea>


<!doctype html>
<html lang="en">
<head>
   <meta charset="UTF-8">
   <title>[HTML] 문서에 단축키 달기</title>
</head>
<script type="text/javascript">
function loadMessage() {
   alert("[HTML] 문서에 단축키 달기 : accesskey 속성 이용");
}
</script>
<body>
<input type="button" name="load" value="불러오기" onClick="loadMessage()" accesskey="q"><br />
<a href="http://www.naver.com" accesskey="j">네이버</a>
</body>
</html>


Total
Today
Yesterday
최근에 올라온 글
«   2025/01   »
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31