Latest web development tutorials

HTML DOM propiedad tabIndex

Elementos objeto de referencia objeto Element


Definición y Uso

tabIndex conjuntos de propiedades o devuelve la ficha botón de radio orden.

gramática

HTMLElementObject.tabIndex=tabIndex


Soporte para el navegador

Internet ExplorerFirefoxOperaGoogle ChromeSafari

Todos los principales navegadores admiten la propiedad tabIndex


Ejemplos

Ejemplos

Ordenar pestaña para cambiar los tres enlaces:

<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>

Trate »


Elementos objeto de referencia objeto Element