469,923 Members | 1,497 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,923 developers. It's quick & easy.

Can I set all elements on a page to have tabIndex = -1?

The reason why I want to do this is that I will set a form's elements to have a tabIndices. I start out with no tabbing. The page loads the cursor appears in a first Input box and until the user "does something" there is no tabbing. This is specific to Microsoft Internet Explorer 5+. Anyway the issue is that although I set the tabbing order for all the components on the "page," there is one "element" that gets included in the tabbing order and I am NOT setting it. It is the address bar. What element is that? And how can I keep that at tabIndex = -1 so that after I set the tabbing order on the page, the address bar keeps it's nose out of the equation? Using javascript if possible. I'd be happy to show ya'll this page if anyone's interested when it's done and you'll understand why I need to do this. Thanks.

--
George Hester
__________________________________
Jul 20 '05 #1
6 4575
"George Hester" <he********@hotmail.com> wrote in message
news:qm*******************@twister.nyroc.rr.com...
The reason why I want to do this is that I will set a form's elements to
have a tabIndices. I start out with no tabbing. The page loads the cursor
appears in a first Input box and until the user "does something" there is no
tabbing. This is specific to Microsoft Internet Explorer 5+. Anyway the
issue is that although I set the tabbing order for all the components on the
"page," there is one "element" that gets included in the tabbing order and I
am NOT setting it. It is the address bar. What element is that? And how
can I keep that at tabIndex = -1 so that after I set the tabbing order on
the page, the address bar keeps it's nose out of the equation? Using
javascript if possible. I'd be happy to show ya'll this page if anyone's
interested when it's done and you'll understand why I need to do this.
Thanks.

--
George Hester
__________________________________
You could open up the page without an address bar:

window.open({url},"","location=0")
Jul 20 '05 #2
Actually I'd like to keep the page the way it is normally. I really don't want that. You'll see after the page is finished why that's not good. So I'm wondering if it is possible to set all elements on a page to have tabIndex = -1 when the page loads? Thanks.

--
George Hester
__________________________________
"McKirahan" <Ne**@McKirahan.com> wrote in message news:qtUHb.227124$_M.1005256@attbi_s54...
"George Hester" <he********@hotmail.com> wrote in message
news:qm*******************@twister.nyroc.rr.com...
The reason why I want to do this is that I will set a form's elements to
have a tabIndices. I start out with no tabbing. The page loads the cursor
appears in a first Input box and until the user "does something" there is no
tabbing. This is specific to Microsoft Internet Explorer 5+. Anyway the
issue is that although I set the tabbing order for all the components on the
"page," there is one "element" that gets included in the tabbing order and I
am NOT setting it. It is the address bar. What element is that? And how
can I keep that at tabIndex = -1 so that after I set the tabbing order on
the page, the address bar keeps it's nose out of the equation? Using
javascript if possible. I'd be happy to show ya'll this page if anyone's
interested when it's done and you'll understand why I need to do this.
Thanks.

--
George Hester
__________________________________


You could open up the page without an address bar:

window.open({url},"","location=0")

Jul 20 '05 #3
"George Hester" <he********@hotmail.com> wrote in message
news:7p*******************@twister.nyroc.rr.com...
Actually I'd like to keep the page the way it is normally. I really don't
want that. You'll see after the page is finished why that's not good. So
I'm wondering if it is possible to set all elements on a page to have
tabIndex = -1 when the page loads? Thanks.

--
George Hester
__________________________________
I doubt that you do what you want.

You can only control the "tabindex" of elements within your page not the
browser.

http://msdn.microsoft.com/library/de...thor/dhtml/ref
erence/properties/tabindex.asp

You state that I'll " see after the page is finished why that's not good.".

Can you explain "why that's not good"?
Jul 20 '05 #4
Because that will "scare" people. Plus all they have to do is enable the address bar and I'm right back to the same issue.

--
George Hester
__________________________________
"McKirahan" <Ne**@McKirahan.com> wrote in message news:cEXHb.507917$275.1423025@attbi_s53...
"George Hester" <he********@hotmail.com> wrote in message
news:7p*******************@twister.nyroc.rr.com...
Actually I'd like to keep the page the way it is normally. I really don't
want that. You'll see after the page is finished why that's not good. So
I'm wondering if it is possible to set all elements on a page to have
tabIndex = -1 when the page loads? Thanks.

--
George Hester
__________________________________


I doubt that you do what you want.

You can only control the "tabindex" of elements within your page not the
browser.

http://msdn.microsoft.com/library/de...thor/dhtml/ref
erence/properties/tabindex.asp



You state that I'll " see after the page is finished why that's not good.".

Can you explain "why that's not good"?

Jul 20 '05 #5
This is what I found but I am unable to get it to work. When the address bar is selected using TAB and the TAB key is pressed again there is nothing firing that I can catch it seems. So it cannot be done?

http://www.faqts.com/knowledge_base/...d/9105/fid/145

--
George Hester
__________________________________
"McKirahan" <Ne**@McKirahan.com> wrote in message news:cEXHb.507917$275.1423025@attbi_s53...
"George Hester" <he********@hotmail.com> wrote in message
news:7p*******************@twister.nyroc.rr.com...
Actually I'd like to keep the page the way it is normally. I really don't
want that. You'll see after the page is finished why that's not good. So
I'm wondering if it is possible to set all elements on a page to have
tabIndex = -1 when the page loads? Thanks.

--
George Hester
__________________________________


I doubt that you do what you want.

You can only control the "tabindex" of elements within your page not the
browser.

http://msdn.microsoft.com/library/de...thor/dhtml/ref
erence/properties/tabindex.asp



You state that I'll " see after the page is finished why that's not good.".

Can you explain "why that's not good"?

Jul 20 '05 #6
George Hester wrote:
The reason why I want to do this is that I will set a form's elements to have a tabIndices. I start out with no tabbing. The page loads the cursor appears in a first Input box and until the user "does something" there is no tabbing. This is specific to Microsoft Internet Explorer 5+. Anyway the issue is that although I set the tabbing order for all the components on the "page," there is one "element" that gets included in the tabbing order and I am NOT setting it. It is the address bar. What element is that? And how can I keep that at tabIndex = -1 so that after I set the tabbing order on the page, the address bar keeps it's nose out of the equation? Using javascript if possible. I'd be happy to show ya'll this page if anyone's interested when it's done and you'll understand why I need to do this. Thanks.

--
George Hester
__________________________________


<form>
<input type="text" name="one" tabindex="1">
<input type="text" name="two" tabindex="2">
<input type="text" name="three" tabindex="3">
<input type="text" name="four" tabindex="4" onblur="this.form.elements['one'].focus();">
</form>

Doesn't help if the user hits SHIFT+TAB in the first form element however.

--
| Grant Wagner <gw*****@agricoreunited.com>

* Client-side Javascript and Netscape 4 DOM Reference available at:
* http://devedge.netscape.com/library/...ce/frames.html
* Internet Explorer DOM Reference available at:
* http://msdn.microsoft.com/workshop/a...ence_entry.asp
* Netscape 6/7 DOM Reference available at:
* http://www.mozilla.org/docs/dom/domref/
* Tips for upgrading JavaScript for Netscape 7 / Mozilla
* http://www.mozilla.org/docs/web-deve...upgrade_2.html
Jul 20 '05 #7

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Rachel Suddeth | last post: by
5 posts views Thread by John Bradley | last post: by
1 post views Thread by Captain Dondo | last post: by
7 posts views Thread by GaryDean | last post: by
reply views Thread by sandy | last post: by
3 posts views Thread by Slawomir | last post: by
9 posts views Thread by adweaver | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.