Solved

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

Posted on 2003-11-20
3
3,058 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 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

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

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

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…
This demonstration started out as a follow up to some recently posted questions on the subject of logging in: http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/Q_28634665.html and http://www.experts-exchange.com/Programming/…
There's a multitude of different network monitoring solutions out there, and you're probably wondering what makes NetCrunch so special. It's completely agentless, but does let you create an agent, if you desire. It offers powerful scalability …
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…

617 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