tabindex is a global attribute that specifies whether:
You can remove an element from the tab order by setting tabindex=“-1”
You can add an element to the tab order by setting tabindex=“0”:
The order is then defined by the document's source order.
const input = document.getElementById('input');
input.tabIndex = 1;