In IE, you can set the tabindex to -1. This will skip over the field. ----- Original Message ----- From: Shawn Grover <[EMAIL PROTECTED]> Date: Thursday, June 20, 2002 4:01 pm Subject: OT: Using JS to skip a Tab index?
> Lets say I have 3 form elements. For one reason or another > (probably a > business rule), I can't allow the Tab key to move from the first > to the > second element, but the second element MUST be enabled. And, we > MUST allow > the tab key to be used for navigating between the form elements > (as well as > mouse clicks). So, hitting tab when the First element has focus > would move > focus to the third element. > > Does anyone know how to programmatically skip over a control like > this with > JavaScript? I'm reasonably confident I can intercept the Tab Key > (event.keycode = 9), but not sure what the next step would be. > > I've considered looping through all the form elements and > inspecting the > TabIndex property to determine which control should receive focus, > but I > think that's a little sloppy. Is there a better way? > > Thanks in advance. > > Shawn Grover > > ______________________________________________________________________ Signup for the Fusion Authority news alert and keep up with the latest news in ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/[email protected]/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

