<input type=button ..... onClick="javascript:function1();function2();">

Or you could call function2() from function1()


>From: zac <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: CF-Talk <[EMAIL PROTECTED]>
>Subject: Re: Two functions with a single onClick?
>Date: Wed, 21 Feb 2001 21:17:13 -0800
>
> > Can more than one javascript function be performed with a single
> > onClick?  If so, how would it be written?
>
>Write one function that handles both tasks and then call that function in
>the onClick statement.
>
>What two tasks are you trying to do?
>
>
>
>--
>
>It is dangerous to be right when the government is wrong.
>
>Voltaire
>
>
>email: [EMAIL PROTECTED]
>web: http://www.pixelgeek.com/
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to