Table of Contents

What is the HTML tabindex attribute? (ie taborder)

About

tabindex is a global attribute that specifies whether:

Sequential keyboard navigation

Remove

You can remove an element from the tab order by setting tabindex=“-1”

Add

You can add an element to the tab order by setting tabindex=“0”:

The order is then defined by the document's source order.

1)

Get / Set via Javascript

const input = document.getElementById('input');
input.tabIndex = 1;