Is there any way to get "global" events when working with nested iframes?
<p>My problem is I need to capture a keypress but at any given time the user can be inside of an iframe inside of an iframe inside of an iframe.</p>

<p>At first, I thought I could just put the listener on document but that doesn't work if the user is inside of one of those iframes.</p>

<p>Next I thought of attaching the handler to window but ie doesn't support attaching event handlers to window. I'm not even sure if that would work though or it would be the same problem as with document.</p>

<p>Next, I thought I could just go through all the iframes and add individual handlers there but eventually realized that wouldn't work because the iframe doesn't have any html in the dom so there is no way to access iframes nested in it.</p>

<p>One other possible solution is to go to the js of all the iframes and add this code manually but that is way too extreme.</p>

<p>Any other ideas?</p>
