51
rated 0 times
[
53]
[
2]
/ answers: 1 / hits: 18743
/ 14 Years ago, sun, february 6, 2011, 12:00:00
I'm building a WYISWYG
editor with an iframe
with designMode = 'on'
.
The problem is that I can't use any event on the iframe in Firefox and Opera (IE untested), for example I would like to track the onkeyup event:
document.getElementById(myFrame).onkeyup = function(){
doSomething...
}
But doesn't works in the parent window.
I tried in the iframe too with this:
top.frames[0].onkeyup = function(){
doSomething...
}
and all kind of stuff like these:
top.document.frames[0].onkeyup
top.frames[myFrame].onkeyup
top.frames[0].document.onkeyup
But none of them wants to work so at the end turned out that even window.onclick
doesn't works, so now I'm a bit confused...
What's the solution for this?
EDIT
The problem seems to be with document.designMode = on
in the iframe
More From » events