Keypress event

Giganews Newsgroups
Subject: Keypress event
Posted by:  yzzzzz (yzzz…@netcourrier.com)
Date: Sun, 13 Jul 2003

Hi,

<input type="text" onkeypress="alert(this.value)">

This doesn't work, it is always 1 character missing because the event
triggers *before* the character is inserted into the text box. How can I
get the entire string, including the last character?
(only needs to work with Mozilla or NN7)

Thanks.

Replies