NerdyHearn
Home
Blog

Contact
Mailing List

Software

Active Directory Products
Object Compare
Permission Compare

IPhone Products
Calls To Calendar
SMS To CSV
SMS To Gmail
Voicemail To Gmail

Sites
DocuTerminal
How Long For Me
My Music To Me
SaveMySerials
TypeCount

Blog
Twitter

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.

Tags

JavaScript

Related Blogs

Using JavaScript intellisense in Visual Studio 2008
JavaScript Classes: A quick rundown
What causes "Please wait while scripts are loaded..." in SharePoint
Differences including javascript file in MSIE and Firefox
Using Ext JS in SharePoint... a tip

Comments

Currently no comments.

Add A Comment

Name:


URL:


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


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. DocuTerminal - Online Filing Cabinet solution. Scan, search and archive your paper documents. SaveMySerials - Protect yourself from theft, fire, natural disasters and more by recording your serial numbers My Music To Me - Stream your subsonic music collection to your Sonos wireless system TypeCount - Count how often you type across different computers! ServrTrackr - Monitor your SSL certificates, website uptime, and DNS configurations