Solved

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

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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Hello, all! I just recently started using Microsoft's IIS 7.5 within Windows 7, as I just downloaded and installed the 90 day trial of Windows 7. (Got to love Microsoft for allowing 90 days) The main reason for downloading and testing Windows 7 is t…
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…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

760 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

22 Experts available now in Live!

Get 1:1 Help Now