버튼에 tabindex (포커스,초점) 주자
페이지 정보
본문
html 문서에 다음과 같이 텍스트 필드와 버튼이 있다
텝인덱스를 넣어주자 실행하고자 하는 순서대로 넣어주면된다.
그럼 텦키를 누르면 순서대로 이동하는것을 볼수 있다.
단 1번부터 시작하면 순서대로 1,2,3,4,5 순서로 가지만
4번에 문자를 적으면 4,5 순으로 이동한다.
<p><input type="button" tabindex="5" value="버튼"></p>
<p> 1 <input type="text" tabindex = "4" name="textfield" /></p>
<p> 2 <input type="text" tabindex = "3" name="textfield2" /></p>
<p> 3 <input type="text" tabindex = "1" name="textfield3" /></p>
<p> 4 <input type="text" tabindex = "2" name="textfield4" />></p>
텝인덱스를 넣어주자 실행하고자 하는 순서대로 넣어주면된다.
그럼 텦키를 누르면 순서대로 이동하는것을 볼수 있다.
단 1번부터 시작하면 순서대로 1,2,3,4,5 순서로 가지만
4번에 문자를 적으면 4,5 순으로 이동한다.
<p><input type="button" tabindex="5" value="버튼"></p>
<p> 1 <input type="text" tabindex = "4" name="textfield" /></p>
<p> 2 <input type="text" tabindex = "3" name="textfield2" /></p>
<p> 3 <input type="text" tabindex = "1" name="textfield3" /></p>
<p> 4 <input type="text" tabindex = "2" name="textfield4" />></p>
댓글목록
등록된 댓글이 없습니다.