Forum Moderators: open

Message Too Old, No Replies

two function calls with one event handler

         

jennashton

11:42 pm on Mar 8, 2004 (gmt 0)

10+ Year Member


Currently, I have two functions I would like to call during an onClick event.

<a href="picture1.jpg" onClick="return enlarge('someother_picture.jpg',event,'left',550,450)">link to something</a>

onClick returns enlarge function. How can I add another function call to the href above?

Is it like this?
<a href="picture1.jpg" onClick="return enlarge('someother_picture.jpg',event,'left',550,450); another_call();">link to something</a>

Birdman

12:02 am on Mar 9, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Why not trigger the second function from the enlarge() function?

function enlarge(){
function2();
rest of enlarge function...
}

Purple Martin

12:44 am on Mar 9, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Is it like this?
<a href="picture1.jpg" onClick="return enlarge('someother_picture.jpg',event,'left',550,450); another_call();">link to something</a>

Yes.