Preserved Topic: Netscape 6 && onkeypress (Page 1 of 1) |
|
---|---|
Bipolar (III) Inmate From: USA! USA! USA! |
posted 04-09-2002 21:47
I have to admit that I'm stumped on this one. How does one implement keystroke filtering in Netscape 6? I can capture the key which was pressed, but I don't seem to be able to cancel the onkeypress event. I have tried returning a false value; calling event.preventDefault(); and a few other more desperate workarounds. This is one of the simpler tasks in IE so i figured that better DOM support would lend itself to easier event handling. |
Lunatic (VI) Mad Scientist From: Massachusetts, USA |
posted 04-10-2002 19:27
onkeypress sounds like one of those events that don't *need* cancelling. It's triggered by an onkeydown and then an onkeyup event happening on the same key. So, try cancelling the onkeyup event instead. |
Lunatic (VI) Mad Scientist From: Massachusetts, USA |
posted 04-10-2002 19:27
Actually, you might also try |
Bipolar (III) Inmate From: USA! USA! USA! |
posted 04-12-2002 16:23
This is indeed a bug in the Netscape 6 browser. It has apparently been fixed in the current release of the Mozilla engine. |