Martin Honnen wrote:[color=blue]
> Mark Szlazak wrote:[color=green]
>> Is there anything for Mozilla or Firefox that would be equivalent to
>> IE's onpaste event for a textarea?[/color]
>
> You could try to use
> <textarea oninput="..."
> with Mozilla, of course it doesn't fire only for text being pasted but
> also for other text manipulation like cutting text but at I think it is
> the only event handler in Mozilla and HTML documents being fired when
> text is pasted into a text control.[/color]
frm.ctlName.addEventListener("DOMCharacterDataModi fied",
function(e){myEventHandler(e);}, false);
This method works, but it has several minor bugs which I logged at:
https://bugzilla.mozilla.org/show_bug.cgi?id=285272
Also, note that if you do something like select the 5 in 54321
and then press 6 (changing the text to 64321) you will fire twice:
The first time the value will be 4321,
and the second firing will have 64321
Csaba Gabor from Vienna