By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,718 Members | 1,220 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,718 IT Pros & Developers. It's quick & easy.

Calling javascript that executes code within an applet

P: 5
I've been working on my site for a while now and think it's time that i find a way to fix a few things. The main thing that's bugging me right now it the fact that when any of my java applets are loaded on my site don't automatically gain focus? Why is that? would it be possible to write a javascript that calls the requestFocus() function in the applet immediately after the applet has loaded? Please help.
Nov 15 '07 #1
Share this Question
Share on Google+
1 Reply

Expert Mod 15k+
P: 16,027
I don't work with applets, but you could try giving the applet tag an id and then using document.getElementById(appletID).focus().
Nov 16 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.