Forum Moderators: open

Message Too Old, No Replies

onclick

         

webmannw

10:43 am on Oct 22, 2004 (gmt 0)

10+ Year Member



hi,

Is it possible to call two javascript functions with only one onclick event?

Thanks

birdbrain

3:46 pm on Oct 22, 2004 (gmt 0)



Hi there webmannw,

try it like this...


onclick="doThis();doThat()"

birdbrain

AWildman

4:16 pm on Oct 22, 2004 (gmt 0)

10+ Year Member



if you have to call two events, which is certainly possible as per the previous post, you might consider making a function, the function of which is simply to call the two other functions. It saves a few bytes of space in the html.

webmannw

1:13 pm on Oct 25, 2004 (gmt 0)

10+ Year Member



Thanks both. :)