View Full Version : Disable Tabbing?
Darksbane
08-02-2002, 07:23 AM
Is there a way to keep a form element from ever being tabbed to?
joh6nn
08-02-2002, 07:29 AM
you can set the TABINDEX="" for most elements. i think if you set it to -1, it will keep that element from being tabbed to, but i'm not sure of that.
boxer_1
08-02-2002, 07:35 AM
Another method is to add onFocus="this.blur();" to the element as in the simple example below. However, this method may disrupt the tabbing of other elements on the page.
<html>
<head>
<title>Simple Example</title>
</head>
<body>
<form>
<input type="submit" onFocus="this.blur();" />
</form>
</body>
</html>
Was replying at the same time as Joh6nn ;)
boxer_1
08-02-2002, 07:39 AM
Originally posted by joh6nn
you can set the TABINDEX="" for most elements. i think if you set it to -1, it will keep that element from being tabbed to, but i'm not sure of that.
Just to clarify, Joh6nn's suggestion will work. Here an example of the "tabindex" being set to -1 to prevent the button from being tabbed to:
<html>
<head>
<title>Simple Example</title>
</head>
<body>
<form>
<input type="submit" tabindex="-1" />
</form>
</body>
</html>
SYP}{ER
08-02-2002, 03:06 PM
lol @ boxer1
You set it to 1 in your example. hehe
boxer_1
08-02-2002, 03:11 PM
Oops...all better now :D. No sleep is starting to get to me *L*...lol. Thanks for pointing that out though :).
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.