You can create one function that calls both of them, and then use it in an event.
function myFunction(){ pay(); cls(); }
And then, for the button:
<input id="btn" type="button" value="click" onclick="myFunction();"/>
Renan Apr 15 '13 at 21:41 2013-04-15 21:41
source share