지식나눔

공유하기

[웹접근성] accesskey와 tabIndex 사용하기

 아마 각종 메신져 쓰는 사람들에게 제일 익숙한 기능주의 하나가 alt+s 일거라고 생각합니다.
 Send기능을 하는 키조합인데요. IE에서는 accesskey='s'라고 하면 되거든요.
 즉 글쓰기나 코멘트의 submit()버튼에다가 다음과 같이 하면 됩니다.
 ex)accesskey ="s" 또는 accesskey ="d"
 <input type=submit value="글올기" accesskey='s'>
 <input type=text name="txtName" value="" accesskey="d">
 
2. tabIndex : TAB 키를 통하여 이동순서 지정


 tabIndex는 html code에서 폼 요소를 이동할때 키보드 탭(TAB)을 눌렀을때의 이동 순서를 정하는
 사용되는 속성으로 인터넷 익스플로서 4이상에서 사용된다.
 사용할수 있는 html tag는 예로 a, area, button, input, object, select, textarea...etc
 
 tabIndex 값은 1부터 시작 -1 일경우 포커스가 위치하지 않음
 
 ex) tabIndex ="1"
 <input tabIndex="1" name-"_a" type="text" size="5" style="" value=0">
 <input tabIndex="3" name-"_b" type="text" size="5" style="" value=0">
 <input tabIndex="2" name-"_c" type="text" size="5" style="" value=0">

공유하기
등록자

차한진

등록일
2009-11-25 07:43
조회
20,300