Listen for keypress while iframe has focus?
Posted
by Matrym
on Stack Overflow
See other posts from Stack Overflow
or by Matrym
Published on 2010-04-09T09:38:50Z
Indexed on
2010/04/09
9:43 UTC
Read the original article
Hit count: 514
Is there any way to listen for keypress events in a parent page while the iframe has focus? Or, alternatively, is it possible to pull away the focus from the iframe?
Please note, the iframe is not within the same domain, so I cannot modify it's contents via javascript.
I've tried the following jquery in the parent page, thinking perhaps an intermittent blur would work, but it doesn't seem to.
function iframeBlur(){
$("#iframe").blur();
}
var blurif = setInterval(iframeBlur, 500);
Thanks for your time!
© Stack Overflow or respective owner