Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

onchange() event

Status
Not open for further replies.

BML

Programmer
Oct 24, 2000
37
0
0
PT
Hi,

In VB the TextBox raises an Change event each time one caracter is inserted or removed from the control.

In HTML the onchange() event is just raised when the control lost the focus.

can anyone tell me why?

is there a way to do the same thing that VB does?
regards,

Bruno Loureiro
<brunoloureiro@usa.net>
 
you can use the onkeypress and test against the current string against the old string...onchange fires when the text has changed and the element loses focus, or in select box when a new options is selected jaredn@eae.net -
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top