Welcome visitor
* Login
* Register
It is currently January 17th, 2019, 12:32 am
All times are UTC [ DST ]
* Search
View unanswered posts - View active topics

FORUMS » Client Side » JavaScript



Post new topic Reply to topic  [ 2 posts ] 
Author Message
  onenter javascript event
PostPosted: May 10th, 2009, 5:53 am 
User avatar

Posts: 37
For general purposes, how can you add an event when the enter key is pressed? for example how could i trigger an alert when an input is filled and then the enter is pressed?


Top
 Profile  
 
  Re: onenter javascript event
PostPosted: May 10th, 2009, 5:59 am 
User avatar

Posts: 63
onkeyup="if (event.keyCode == 13)alert();"


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

FORUMS » Client Side » JavaScript


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron