Click to See Complete Forum and Search --> : How to "call" this javascript function ?


Donovan
12-07-2000, 08:59 PM
Ok I must make an link with an image (img src....) to call this fonction cr.do.rooms() using javascript.:
I did a simple javascript:cr.do.rooms() a href link.

On IE it worked well... the function was properly called. Of course, on netscape it didn't do anything and didn't load at all.

Ho shouls I call this javascript function to work with netscape ?

Thanks,
Donov

20_MuleTeam_Borax
12-07-2000, 10:54 PM
Try the "onClick" event handler. Put it in the image tag.

Donovan
12-08-2000, 08:01 AM
How should I formulate the image tag with the onclick ?

Can you show me an example please ?

Thanks,
Donov

EyesWideOpen
12-08-2000, 10:09 AM
<a href="http://URL" onClick="cr.do.rooms()"><img src="/path/to/image"></a>