Welcome visitor
* Login
* Register
It is currently September 20th, 2019, 5:16 am
All times are UTC [ DST ]
* Search
View unanswered posts - View active topics

FORUMS » Client Side » HTML



Post new topic Reply to topic  [ 2 posts ] 
Author Message
  send a value to a javascript function
PostPosted: March 27th, 2009, 12:35 am 
User avatar

Posts: 71
how can i send a value from the body to a javascript function. for example, send the id of the object that generated the event?


Top
 Profile  
 
  Re: send a value to a javascript function
PostPosted: March 27th, 2009, 12:46 am 
User avatar

Posts: 136
<input id="buta" type="button" onclick="funn(id);" value="klik">

function funn(per){alert(per); document.getElementById(per).value= 'yep';}

figure out the rest...


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

FORUMS » Client Side » HTML


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