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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top