Here Mudassar Ahmed Khan has explained with an example, how to perform Email validation using OnKeyPress event in JavaScript.
The OnKeyPress event does not update the value of the TextBox when accessed using JavaScript and hence OnKeyUp event handler will be used to validate Email Address dynamically when User types in the Email Address in the TextBox.
↧