SyntaxFix
Write A Post
Hire A Developer
Questions
You can create a single function that calls both of those, and then use it in the event.
function myFunction(){ pay(); cls(); }
And then, for the button:
<input id="btn" type="button" value="click" onclick="myFunction();"/>