472,811 Members | 1,183 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,811 software developers and data experts.

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 4706
"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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Bil Muh | last post by:
Esteemede Developers, I would like to Thank All of You in advance for your sincere guidances. I am developing a software using Visual C++ .NET Standard Edition with Windows Form (.NET)...
0
by: Rudy Ko | last post by:
Hi, All: I'm populating database records into a panel controls and want to render that panel into a HtmlTextWriter which will creating a word document. Do you know how to insert a page break...
1
by: Rachel Suddeth | last post by:
I have an form where the whole display is a tab control (well, that plus a status bar.) I want to set the focus to the first TextBox on the first TabPage when it loads. I tried to put that into...
5
by: John Bradley | last post by:
Toooo tired to look this one up. I have data that I need to acces in a small program. The data is accessable from an ASP webpage that I created myself. If I need to see data from record #25, I...
1
by: Captain Dondo | last post by:
I am not really experienced in Javascript so bear with me.... I am working with an embedded platform; no mouse, no keyboard. Just up, down, left, right keys and +/- keys for...
7
by: GaryDean | last post by:
In my old 1.1 apps the default was MS_POSITIONING="GridLayout" and Textboxes and labels and such always had POSITION: absolute; and I never had any distortion when the page was rendered. Life was...
0
by: sandy | last post by:
hello,,,,,,,,, i am creating login page using Perl/CGI facing prob... able to connect DB but from there facing prob If u have related code of login page in Perl please send me on...
3
by: Slawomir | last post by:
Hello. Simple question about webforms: How to hide true address of website ? To this day a used "Server.Transfer()" to redirect to another page. In sql server I have a table with data like this: ...
9
by: adweaver | last post by:
Hello All, I'm new to the world of php. I've just had a site designed for me by a company, and I'm now trying to manage and grow it, so it will suit my needs. The site was built in a folder...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 2 August 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: kcodez | last post by:
As a H5 game development enthusiast, I recently wrote a very interesting little game - Toy Claw ((http://claw.kjeek.com/))。Here I will summarize and share the development experience here, and hope it...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Sept 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: Taofi | last post by:
I try to insert a new record but the error message says the number of query names and destination fields are not the same This are my field names ID, Budgeted, Actual, Status and Differences ...
14
DJRhino1175
by: DJRhino1175 | last post by:
When I run this code I get an error, its Run-time error# 424 Object required...This is my first attempt at doing something like this. I test the entire code and it worked until I added this - If...
5
by: DJRhino | last post by:
Private Sub CboDrawingID_BeforeUpdate(Cancel As Integer) If = 310029923 Or 310030138 Or 310030152 Or 310030346 Or 310030348 Or _ 310030356 Or 310030359 Or 310030362 Or...
0
by: lllomh | last post by:
How does React native implement an English player?
0
by: Mushico | last post by:
How to calculate date of retirement from date of birth
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.