[thelist] Calling multiple functions in single onclick

Peter Brunone (EasyListBox.com) peter at easylistbox.com
Mon Aug 1 10:13:23 CDT 2005


Oi James,

   You sort of answered your own question :)  Just call a function from your event handler, i.e.

onclick="return mySubmitFunction()"

   Then do all the stuff you need to do in that function (defined within Javascript tags somewhere), and return the correct value when you're done.

Cheers,

Peter

 From: klute soundres9 at yahoo.com

Hello All,

Newbie here. I have a form which is submitted by a
click on a link:

document.forms.orderform.submit();" href="#">checkout

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?

Thanks a lot
James


More information about the thelist mailing list