Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Focus on frames in HTML

Status
Not open for further replies.

IlseDC

Programmer
Mar 24, 2003
49
0
0
BE
Hi,

I'm new on HTML.
In my HTML page I have two framesets and three frames.

When I use the tab key I don't want that the frames get focus (dotted rectangle round the frame).

When I use the tab key all frames + all controls on the HTML pages get focus. I only want the controls on the HTML pages get focus.

I used this code but it does not work:
<script>
Frameset1.tabIndex = &quot;-1&quot;;
Frameset2.tabIndex = &quot;-1&quot;;
frameLeft.tabIndex = &quot;-1&quot;;
frameTop.tabIndex = &quot;-1&quot;;
frameBottom.tabIndex = &quot;-1&quot;;
</script>

I also tried this but it doesn't work either:
<frameset id=&quot;Frameset1&quot; cols=&quot;117,84%&quot; frameborder=&quot;0&quot; framespacing=&quot;0&quot; tabindex=&quot;-1&quot;>

Any ideas?

Ilse
 
You could perhaps start by not visibly indicating the focus for the frames <frame hidefocus=true>
Use: <frame unselectable=on>

Hope this helps



'I may be stupid but i'm not good-looking'
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top