Connecting Tech Pros Worldwide Help | Site Map

The adress of an image

Annick
Guest
 
Posts: n/a
#1: Jul 23 '05
Can you help me ?
How can I reach the adress of an image in Javascript?

Thanks


Ivo
Guest
 
Posts: n/a
#2: Jul 23 '05

re: The adress of an image


"Annick" wrote[color=blue]
> Can you help me ?
> How can I reach the adress of an image in Javascript?
>[/color]
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



Evertjan.
Guest
 
Posts: n/a
#3: Jul 23 '05

re: The adress of an image


Annick wrote on 07 jun 2004 in comp.lang.javascript:[color=blue]
> Can you help me ?
> How can I reach the adress of an image in Javascript?[/color]

What do you mean by "reach" ?

(Antwoord kan ook in het Nederlands)

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Closed Thread


Similar JavaScript / Ajax / DHTML bytes