PDA

View Full Version : keypress Event on Iframe



mamatachaudhari
18 Feb 2011, 4:04 AM
Hi,
I have added event listener on keypress on body
as


jQuery('#body').keypress(function(){somevariable = new Date().getTime(); });

now what is happening on page there is one button which opens a popup window(using extjs) and
contains an Iframe having an html editor (rich text area) which can not identify that key press event.
Other elements on tht pop up responds to keypress event but hat Richtext area doesnt bcoz it have separate body tag.


how can i handle this situation.?
I want to bind keypress listener at the time of loading.
Is there any way to get frame elements using javascript/extjs/jQuery?

thanks...