Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to prevent frame from getting focus
Message
From
21/11/2002 05:18:42
 
 
To
20/11/2002 15:05:39
Mike Sue-Ping
Cambridge, Ontario, Canada
General information
Forum:
Internet
Category:
HTML
Miscellaneous
Thread ID:
00724226
Message ID:
00725070
Views:
25
This message has been marked as the solution to the initial question of the thread.
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>
Len Speed
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform