Codin_away
05-04-2004, 09:28 PM
Are iframes compatible with onkeydown? Let me back up and make this harder (or easier?)... Can I use onkeydown on and iframe that is in docmode (designmode)? If I can, can I interpret only the keystroke I want ("esc") and the rest will go through to the iframe in docmode?
I have a help system that runs on local machines. It has a 2 frame page that comes up to browse (left side) and diplay (right side) data. I want to be able to parent.window.close() when they press "ESC." I got it working everywhere EXCEPT when they are in the editable iframe. The editable iframe is what they use to create they're own helps.
In summary I want to catch the "ESC" key in an EDITABLE (that's what's making it hard) iframe and use that to close the window and let every other keystroke go by.
Ideas??
I have a help system that runs on local machines. It has a 2 frame page that comes up to browse (left side) and diplay (right side) data. I want to be able to parent.window.close() when they press "ESC." I got it working everywhere EXCEPT when they are in the editable iframe. The editable iframe is what they use to create they're own helps.
In summary I want to catch the "ESC" key in an EDITABLE (that's what's making it hard) iframe and use that to close the window and let every other keystroke go by.
Ideas??