웹♡디자인방

[텝제어]탭키의 순서를 바꿀수 있다. 이렇게[자바스크립트]

탤런트 2007. 1. 26. 10:50
 

[탭제어] 탭키의 순서를 바꿀수 있다. 이렇게

아이디
패스워드
위와 같이 로그인을 많이 사용하는데 탭키의 순서를 보면 원래는 아이디-로그인-패스워드순이다. 하지만 지금은 아이디에서 탭키를 사용하면 패스워드 그 다음이 로그인이다.. 아이디란에 클릭한후 탭키를 눌러보면 아이디-패스워드-로그인 순으로 되어 있을것이다.. 키는 tabindex가 가지고 있는 것이다. 이넘이 탭의 순서를 정해주고 있다.... 이렇게 <table cellpadding=1 align=center border=1 bordercolor=yellow style="border-collapse:collapse;"> <tr> <td width=100 align=center>아이디</td> <td width=120><input type=text size=20 name=10 tabindex=1></td> <td rowspan=2 width=100><input type=button value="로그인" &nbsp; style="height:45;width:100;cursor:hand" tabindex=3></td></tr> <tr> <td align=center>패스워드</td> <td><input type=password size=20 name=10 tabindex=2></td></tr> </table>