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 biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how can i detect that the ENTER key has been pressed?

Status
Not open for further replies.

bluecoco

Programmer
Apr 30, 2001
4
AE
hi guys,
i have a textarea-box, i wanna know how to detect that the ENTER key has been pressed over that textarea-box, in other words, i wanna check if the ascii code of the pressed key is 13.

with regards. bluecoco >> never lose hope ..
 
<textarea onkeydown=&quot;if(window.event.keyCode==13){alert('enter pressed')/*do some action*/}&quot;>

</textarea> jared@eae.net -
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top