Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to prevent frame from getting focus
Message
From
21/11/2002 10:18:43
Mike Sue-Ping
Cambridge, Ontario, Canada
 
 
To
21/11/2002 05:18:42
General information
Forum:
Internet
Category:
HTML
Miscellaneous
Thread ID:
00724226
Message ID:
00725202
Views:
23
Len,

That did the trick. Now you've earned the full marks :P

Thanks for the assistance.

Mike

>After playing around a little more, I found there were further problems in using the onblur to keep the focus, such as not being able to get to the address bar. The following addresses that problem & I've added an onfocus event to stop the document body getting focus (the grey border effect). Hope this works for you.
>
>frame2.html
>
><html>
><frameset cols="20%,20%,*">
><frame src="frame2b.html" name="FRM2B" onfocus="document.all.FRM2A.contentWindow.focus()">
><frame src="frame2c.html" name="FRM2C"  onfocus="document.all.FRM2A.contentWindow.focus()">
><frame src="frame2a.html" name="FRM2A" onload="this.contentWindow.focus()">
></frameset>
></html>
>
>
>frame2a.html
>
><html>
><body onfocus="document.all.GF.focus()">
>Frame 2A<br>
><form>
><input name="GF" type="text" width=120><br>
><input type="text" width=120><br>
><input type="text" width=120><br>
></form>
></body>
></html>
>
>
>frame2b.html
>
><html>
><body>
>Frame 2B<br>
><button onclick="alert('ok')">abc</button>
></body>
></html>
>
>
>frame2c.html
>
><html>
><body>
>Frame 2C<br>
></body>
></html>
>
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform