I have a page with a document.onkeydown event handler, and I'm loading it inside an iframe in another page. I have to click inside the iframe to get the content page to start "listening". is there some way I can use javascript in the outer page to set the focus to the inner page so I don't have to click inside the iframe?
EDIT: ressponse to comment:
the context is the main window is a light-box-like system, except instead of pictures, it shows iframes, and each iframe is an interactive page with keydown/mousemove handlers. these handlers don't fire until I click in the iframe after showing the light-box-thing.
I'm not actually looking to "setFocus" in the traditional sense as much as "enable event handlers on the iframe contentDocument"