Solved

(ASP.NET) Preventing tab index from going to browser address bar ?

Posted on 2003-11-20
3
2,941 Views
Last Modified: 2012-08-14
Hello,

I have a web form that tabs properly through the controls on my page. Problem is, after I tab through to the last control, the next thing to receive focus is the address bar in the browser. How can I prevent this from happening.

Thanks,
Mike
0
Comment
Question by:MichaelVB
  • 2
3 Comments
 
LVL 29

Accepted Solution

by:
David H.H.Lee earned 60 total points
ID: 9794677
MichaelVB,
I'm afraid you can't do it in a web site application. Event in EE itself, you also can tab until to adress bar (can try it by yourself).
Adress bar also consider one of the TabIndex. Can't prevent it.

Regards
xcom
0
 
LVL 1

Assisted Solution

by:vknowles
vknowles earned 40 total points
ID: 9801562
Well, I haven't tried this, but let's say you did something like this:

Use the last control's onBlur event.

Find a way to determine whether the onBlur occurred because of a tab keypress.

If so, set focus to the first control in your tab sequence.

That might prevent the user from tabbing to the address bar.

Just a guess.

-Van
0
 
LVL 29

Expert Comment

by:David H.H.Lee
ID: 9807918
MichaelVB,
TabIndex for address bar is "0" in Web Site.
If you set Tabindex is "0" for others control inside your web site, but, you still will get back to address bar after you tab from initial tabIndex as you defined in your first control. So, the conclusion is you cant prevent it.

Regards
x_com
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Update field in order 21 124
Select distinct 25 83
Need help editing script 3 66
Bypass cross origin issues on development site 3 64
I recently decide that I needed a way to make my pages scream on the net.   While searching around how I can accomplish this I stumbled across a great article that stated "minimize the server requests." I got to thinking, hey, I use more than one…
Have you ever needed to get an ASP script to wait for a while? I have, just to let something else happen. Or in my case, to allow other stuff to happen while I was murdering my MySQL database with an update. The Original Issue This was written…
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

867 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now