Capture the previous value when onkeydown is executed
<p>Need help in event handling. In my scenario, I have a textbox with default value 35 and cursor is set to before the 3. There is a event for this text box which is onkeydown. When I press 4, IE and Safari captures the previous value of the text which is 35. But Mozilla and Chrome captures the new value which is 435.</p>

<p>I need the javascript code which can capture the previous value of the textbox when onkeydown is fired.   </p>

<p>Need your hands :(</p>
