Unity Web - getting keyboard focus

Unity web content - like flash - does not get keyboard focus until you click on it.
Is there any browser-independent way to set keyboard focus to Unity?
Can I detect in Unity when I have or do not have focus?

Yes, focus can be tracked from Unity by using:

function OnApplicationFocus (focus : bool) : void

You can try calling focus() from JavaScript but this doesn’t work reliably on all browsers.

thanx - my eyes must be tired I missed that when I searched the docs!

Only trouble with this is you can not detect if Unity has focus on startup (you can usually assume it does, but on some browsers it’s not the case, at least in a more complex site layout).
You do not appear to recieve an OnApplicationFocus until it goes out of focus the first time.

Maybe something for Unity to fix…
If anyone has a workaround let me know…