mknutsson
10-17-2003, 07:39 AM
Is there any JavaScript code that automatically sets focus to a Java applet in a new window?
Problem is that when creating a new browser window with a Java applet in it, the applet doesn't get focus automatically. You have to klick on it with mouse first.
I have tried the focus() method, but that doesn't work since the applet isn't fully loaded when the web page is loaded.
Or...
Should the APPLET contain code that automatically focuses it? I have tried, but failed there as well.
Anyone who knows?
Thanks.
Problem is that when creating a new browser window with a Java applet in it, the applet doesn't get focus automatically. You have to klick on it with mouse first.
I have tried the focus() method, but that doesn't work since the applet isn't fully loaded when the web page is loaded.
Or...
Should the APPLET contain code that automatically focuses it? I have tried, but failed there as well.
Anyone who knows?
Thanks.