Page 1 of 1

onkeypress on frame

Posted: Sat Jul 30, 2005 11:18 am
by newmember
hi

i have two frames. first frame contains menu.
i want to attach onkeypress event handler to that frame. there is no problem to make it work in firefox. any of this works:

window.onkeypress=handleKeyboardInput;
or
top.frames[0].onkeypress=handleKeyboardInput;
or
document.onkeypress=handleKeyboardInput;

but none of this works in IE.
(it works in IE if i don't use frames.)

any idea how can i make it work in ie?