[thelist] Calling multiple functions in single onclick

Tim Plumb tim at freewayactions.com
Mon Aug 1 10:11:31 CDT 2005


Hi James,
Either;
<a href="#" onclick="logevent();return
document.forms.orderform.submit();">checkout</a>

or wrap them both in a single function and call that;
<a href="#" onclick="myfunction();">checkout</a>

function myfunction(){
     logevent();
     return document.forms.orderform.submit();
}

Regards,
Tim.

On 1 Aug 2005, at 3:45 pm, klute wrote:
> <a href="#" onclick="return
> document.forms.orderform.submit();">checkout</a>
>
> If I wanted to call another javascript function
> (logevent()) upon the onclick event prior to
> document.forms.orderform.submit(), what would the code
> look like?



More information about the thelist mailing list