title: Applet Permanently Loses Focus When Leaving Browser and Coming Back
body: <p>I have a web page with an applet as the only element that looks something like this:</p>
  
  <pre><code>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;
  &lt;html&gt;
  &lt;head&gt;
    &lt;title&gt;...&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
  &lt;applet style="padding:1px; border:1px solid gray" mayscript="mayscript" codebase="..." name="AppletName" code="..." archive="..." width="600" height="500" alt="Alt Text"&gt;
    &lt;param name="initial_focus" value="true"/&gt; 
     Alt Text
  &lt;/applet&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>When the page initially loads, focus is set in the applet and I can tab through and interact with the applet just fine.  However, if I leave the browser window and then come back to it, I can no longer regain focus on the applet just using the tab key.</p>
  
  <p>Pressing F5 to reload the page fixes the page so that the Applet regains focus, but this solution is unacceptable.</p>
  
  <p>How do I solve this problem?  Thanks.</p>