?
Solved

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

Posted on 2003-11-20
3
Medium Priority
?
3,090 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 29

Accepted Solution

by:
David H.H.Lee earned 180 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 120 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

Enroll in September's Course of the Month

This month’s featured course covers 16 hours of training in installation, management, and deployment of VMware vSphere virtualization environments. It's free for Premium Members, Team Accounts, and Qualified Experts!

Question has a verified solution.

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

I would like to start this tip/trick by saying Thank You, to all who said that this could not be done, as it forced me to make sure that it could be accomplished. :) To start, I want to make sure everyone understands the importance of utilizing p…
I was asked about the differences between classic ASP and ASP.NET, so let me put them down here, for reference: Let's make the introductions... Classic ASP was launched by Microsoft in 1998 and dynamically generate web pages upon user interact…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…

719 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