Tabindex & Div

M

Mad Max

Hi,

I have a div with a number of buttons in it.
I want the tab to iterate within these buttons and never leave the
div.
(Not even tp the Url or the toolbars)
Any idea on how to go about it ?

Regards
Lav G
 
I

Ivo

Mad Max said:
I have a div with a number of buttons in it.
I want the tab to iterate within these buttons and never leave
the div. (Not even tp the Url or the toolbars)
Any idea on how to go about it ?

Focus the first button onblur of the last.
Or if you don't to mess with the button itself : have a dummy button after
the last, and redirect its focus. The dummy should be invisible to the human
user but the machine must be tricked into thinking it is there so that it
can receive focus.

<div>
<button id="b1">
<button>
<button>
<button
style="position:absolute;left:-999px"
onfocus="document.getElementById('b1').focus();"</div>

hth
ivo
http://4umi.com/web/javascript/
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,767
Messages
2,569,572
Members
45,046
Latest member
Gavizuho

Latest Threads

Top