JavaScript

[DOM_Element] JS - tabIndex 속성 - 탭색인번호 설정/반환

tabIndex 예제

 

<p><a id="hz1" href="https://homzzang.com">Link 1</a></p> 

<p><a id="hz2" href="https://homzzang.com">Link 2</a></p>

<p><a id="hz3" href="https://homzzang.com">Link 3</a></p>


<input type="button" onclick="homzzang()" value="TabIndex 변경">


<script>

function homzzang() {

  document.getElementById("hz1").tabIndex = "3";

  document.getElementById("hz2").tabIndex = "2";

  document.getElementById("hz3").tabIndex = "1";

}

</script>

 

결과보기

※ 버튼 누르기 전과 버튼 누른 후의 Tab 키 탐색 순서 비교.

 


분류 제목
DOM_Attribute JS - nodemap.item() 메서드 -
DOM_Attribute JS - nodemap.length -
DOM_Attribute JS - nodemap.removeNamedItem() 메서드 -
DOM_Attribute JS - nodemap.setNamedItem() 메서드 -
DOM_Attribute JS - attr.appendChild() 메서드 - 사용금지
DOM_Attribute JS - attr.attributes - 사용금지
DOM_Attribute JS - attr.baseURI - 사용금지
DOM_Attribute JS - attr.childNodes - 사용금지
DOM_Attribute JS - attr.cloneNode() 메서드 - 사용금지
DOM_Attribute JS - attr.firstChild -
DOM_Attribute JS - attr.hasAttributes() 메서드 -
DOM_Attribute JS - attr.hasChildNodes -
DOM_Attribute JS - attr.insertBefore() 메서드 -
DOM_Attribute JS - attr.isEqualNode() 메서드 -
DOM_Attribute JS - attr.isSameNode() 메서드 -
27/89
목록
 홈  PC버전 로그인 일본어
그누앞단언어
그누뒷단언어
그외코딩언어
그누보드
제작의뢰
Q&A
커뮤니티
웹유틸
회원센터
홈짱닷컴 PC버전 로그인