Skip to content


JavaScript library to help modern web applications with accessibility concerns by making accessibility simpler


Determines if an element's tabindex attribute value is sound

# Usage

var element = document.getElementById('victim');
var isValidTabindex =;

# Arguments

Name Type Default Description
element HTMLElement required The Element to test.

# Returns

Boolean, true if the element is has a valid tabindex attribute specified.

# Throws

TypeError if element argument is not of type HTMLElement.

# Changes

# Notes

::note Empty tabindex [tabindex=""] parsed and exposed as [tabindex="-32768"] - Trident 1072965. :::

Invalid tabindex value makes element focusable in - Gecko 1128054.

Gecko, Blink and WebKit consider [tabindex="3x"] valid.

Only Blink and WebKit respect the tabindex attribute on SVGElements (defined in SVG 2).

# Contributing