The adress of an image

I

Ivo

Can you help me ?
How can I reach the adress of an image in Javascript?
If by address you mean url, and by reach you mean for example getting it in
an alert, have a look at this:
<img src="example.png" onclick="alert(this.src)">
If you want to do something else with it, please clarify.
HTH
Ivo
 
E

Evertjan.

Annick wrote on 07 jun 2004 in comp.lang.javascript:
Can you help me ?
How can I reach the adress of an image in Javascript?

What do you mean by "reach" ?

(Antwoord kan ook in het Nederlands)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,436
Messages
2,571,696
Members
48,796
Latest member
Greg L.
Top