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

the name of the current object clicked in the form

Status
Not open for further replies.

ani4

Technical User
Mar 14, 2002
27
FR
Hi

I have an asp page with a form, I put in the form many images, those one have a particular name, in fact I use the name field for the picture like a value field for a checkbox for example.

I want to know what is the name of the current object cliked in the form, in this case I want the name of the picture cliked in the form

How can I do that, is it possible (javascript function)

thanks


damien
 
Something like:
<img name=&quot;image1&quot; src=&quot;images/1.gif&quot; onClick=&quot;javascript:alert(this.name)&quot; /> codestorm
Fire bad. Tree pretty. - Buffy
select * from population where talent > 'average'
<insert witticism here>
 
ok it s allright, i havent think to use the this word for that.....

many thanks, you have resolved many of my problem codestorm

thanks for all
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top