I would like to get my applet to automatically get the input focus whenever the web page is loaded, so that keypresses are sent to the applet without having to click on it first. I understand that this is out of the applet's control, but the focus can be set by a script on the page. I have made various attempts at doing this e.g.:

<applet .........>
<script language="JavaScript">

O have also tried placing it in a onLoad event, but I've not been able to get it working.
Help much appreciated....