PDA

View Full Version : Disabling tabs


db_rufus
08-11-2003, 09:35 AM
Is there a way to disable tabbing between fields, using HTML or JavaScript?

scoutt
08-11-2003, 09:44 AM
why would you want to?

I think you would have to detect keydown and the number for the tab key.

I will move this to the client side forum as html has no power to do this.

tarundhillon
08-11-2003, 10:32 AM
yes this can be done with the help of substring (there must be a better way just in case you don't find any thing else )

Jon Hanlon
08-11-2003, 07:34 PM
Set the tabIndex (http://msdn.microsoft.com/workshop/author/dhtml/reference/properties/tabindex.asp) to be negative.

<input type="text" tabindex="-2">