Get image id: javascript
Solved
tipi75
Posted messages
723
Status
Membre
-
tipi75 Posted messages 723 Status Membre -
tipi75 Posted messages 723 Status Membre -
Hello,
I would like to retrieve the id of one of the images.
Html:
<a href = "redirection()">Click here</a>
But I would like to retrieve the id of one of the images using JavaScript (redirection function). I can't find the method?
Thank you in advance
Configuration: Windows XP / Internet Explorer 8.0
I would like to retrieve the id of one of the images.
Html:
<div id = "conteneur"> <img src = "image/toto" id = "image1" /> <img src = "image/tata" id = "image2" /> <img src = "image/tutu" id = "image3" /> </div>
<a href = "redirection()">Click here</a>
But I would like to retrieve the id of one of the images using JavaScript (redirection function). I can't find the method?
Thank you in advance
Configuration: Windows XP / Internet Explorer 8.0