onkeypress

K

Kim Skytte

Im developing a data access page, and i have a textbox where I want to
prevent the
user from entering return. I consider doing that using the onkeypress event
ie.

<SCRIPT language=vbscript event=onkeypress for=somebox>

...some code...

</SCRIPT>


But how do i read the key being pressed and causing this event.??
I want to do something like this:

if key=return then
nextbox.hasfocus = true
end if

Sincerely Kim
 
Top