Latest web development tutorials

HTML DOM tabIndex 속성

요소 참조 객체 Element 객체


정의 및 사용

모두 tabIndex 속성 세트 나 라디오 버튼 탭 순서를 반환합니다.

문법

HTMLElementObject.tabIndex=tabIndex


브라우저 지원

Internet ExplorerFirefoxOperaGoogle ChromeSafari

모든 주요 브라우저는 tabIndex 속성을 지원


정렬 탭은 세 개의 링크를 변경하려면 :

<html>
<head>
<script>
function changeTabIndex()
{
document.getElementById('1').tabIndex="3"
document.getElementById('2').tabIndex="2"
document.getElementById('3').tabIndex="1"
}
</script>
</head>
<body>

<p><a id="1" href="http://www.w3cschool.cc">1</a></p>
<p><a id="2" href="http://www.w3cschool.cc">2</a></p>
<p><a id="3" href="http://www.w3cschool.cc">3</a></p>

<input type="button" onclick="changeTabIndex()"
value="Change TabIndex">

</body>
</html>

»시도


요소 참조 객체 Element 객체