Click to See Complete Forum and Search --> : Launching javascript from href


horza_1984
11-02-2005, 05:44 AM
It's my first post on here so hopefully won't get crucified for being dumb!

I'm trying to execute two javascript statements from the one <a href> and I was just wondering if that is possible?
What I want it to do is to update an image, as well as its title, at the same time when the button is clicked.
Any help would be greatly appreciated!

deep.dhyani
11-02-2005, 05:55 AM
here is example:

<A href="javascript:window.alert('msg');window.confirm('msg')">Click here</a>

horza_1984
11-02-2005, 06:03 AM
thanks!

cowsgomoojason
11-02-2005, 07:30 AM
Hi Horza,

I had a similar problem, which I recently posted about. Except I was trying to load the images in a seperate template page rather than the same page (which I am still coming to terms with!). I got a very helpful reply with relation to what you are trying to do, the thread is:

http://www.webdeveloper.com/forum/showthread.php?t=83906

Cheers!

Jason