473,327 Members | 2,081 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

Phantom focus

I'm creating a page where I would like to use a combination of tabbing,
tabindex, and focus as the only means of navigation. Everything works
fine except as I tab through the elements of the page (in this case
it's only <a> tags) the browser wants to set focus to other elements,
e.g., the address bar, the entire window, etc.

I've been able to turn off toolbars and set the browser in full screen
mode to solve all of these undesirable focuses except one...which
appears to be the entire window. In IE (6) it appears that nothing has
the focus, but in Firefox (1.5) you can can see the faint dotted line
around the outside of the entire window.

My end goal is to eliminate this behavior. Is there a way to capture
this "phantom focus" event? I've tried with "window.onfocus" and
"document.onfocus" and "window.document.onfocus", etc. Any help is
appreciated...thanks!

Mar 21 '06 #1
2 1295
I've not been able to duplicate it, but it sounds like frame.onfocus to
me.

Mar 21 '06 #2
la*********@gmail.com wrote:
I'm creating a page where I would like to use a combination of tabbing,
tabindex, and focus as the only means of navigation. Everything works
fine except as I tab through the elements of the page (in this case
it's only <a> tags) the browser wants to set focus to other elements,
e.g., the address bar, the entire window, etc.
[...]
My end goal is to eliminate this behavior. Is there a way to capture
this "phantom focus" event? [...]


You will have to handle the (Shift+)Tab key with in the onkeypress/onkeyup
event listener for the form control with the lowest and highest tabindex.
That would cripple usability of the UA, and would probably be a violation
of several laws about accessibility, so I strongly recommend against it.
PointedEars, IANAL
Mar 22 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Andrew | last post by:
Hi All, Have come across something weird and am after some help. Say i run this query where rec_id is a column of table arlhrl, select * from arlhrl where rec_id >= 14260 This returns to...
2
by: Lars Eighner | last post by:
I am trying to force my pages into the skidoo_two three-column layout. Evidently I am breaking some of the hacks as I do so. In Opera 7.54 (FreeBSD) I see phantom underlines, starting about...
0
by: omyek | last post by:
I'm essentially trying to do what a lot of users seem to want when using the above classes, and that's POST to a webpage. Well, I'm golden when it comes to POSTing, I've been able to post to...
0
by: Shaphe | last post by:
I have a system which allows a user to create a list of predefined reports to print. Each report has a chart object, all the chart objects have rowsource set to "ChartQuery". As I loop through...
3
by: memememe | last post by:
I see weak reference on the .net api, but I do not see soft or phantom, are they supported on .net?
0
by: Rod Billett | last post by:
The included html contains 3 divs. One primary Div, with 2 nested divs. the second nested DIV contains an empty table. Problem 1: Phantom Space. When viewed within the browser, the div 'action...
0
by: Thomas Scheiderich | last post by:
My program seems to be coming up with a phantom folder. The folder doesn't show up until I do my login page from my forms authentication web.config setup. Before I get the login pages all my...
9
by: Dave | last post by:
Apologies if this has come up before, but I can't find it if it has. I am fairly new to .Net and am having problems with ghosts in the datagrid. Basically I have a find screen that accepts...
9
by: TB | last post by:
Hi all: I realize that this is strictly speaking not an ASP.NET question, but since most of you people out there SQL gurus as well, I hope you will bear with me on this occasion: I would like...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.