I have an iframe, and I want to call a function when the user is typing inside the iframe. I tried:
<iframe id = "whatever" src="about:blank" onkeypress = "ListenForKeyPress(event);"></iframe>
alert("key pressed in iframe!");
But no messages get caught. Do I need to set the handler for the content window of the iframe or something?