Mailing List



NerdyHearn - Blog

<< Back To All Blogs

Disabling (and setting) the tab stop of a browser in Firefox and MSIE

Tuesday, January 8th, 2008

A quick note about setting the tab stop for the actual HTML on a page in either MSIE or Firefox.

For those that don't know, Tab stop is where the "highlighted" region stops in your browser when you use the tab key.

Be wary of changing this, as users without the use of a mouse will not be able to navigate to the regions that you disable, however, there are often usability reasons for disabling the tab stop.

The HTML syntax is very simple (in both MSIE and Firefox):

The syntax above will actually set the tab stop of that element to be the first element that is highlighted on the page upon hitting tab.

To disable a tab stop, simply change the tabindex to -1. This works great in both MSIE and Firefox.

Your final output would be:

This will also work for a href links, etc.

Tom out.



Related Blogs

Using Ext JS in SharePoint... a tip
Differences including javascript file in MSIE and Firefox

JavaScript Classes: A quick rundown
Using JavaScript intellisense in Visual Studio 2008


Currently no comments.

Add A Comment



Email Address: (not public, used to send notifications on further comments)


Enter the text above, except for the 1st and last character:

NerdyHearn - Latest tech news relating to C#, ASP.NET, SharePoint, PHP, general development, and more. SaveMySerials - Protect yourself from theft, fire, natural disasters and more by recording your serial numbers