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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

java applets and HTML pages

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
how do i set focus on a java applet inside the HTML page once the page opens? in mean the action of giving it focus should be on the onLoad event, but i couldn't figure out exactly how to do it.
when the html page opens the focus is not by default on the applet, and i need it to be. how do i do that?
 
use this type of code :

<BODY onload=&quot;myApplet.focus();&quot;>
...
<APPLET name=&quot;myApplet&quot;>
...
</APPLET>
</BODY>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top