I have two function which needs to be called from one button. Currently I am doing this by creating two button one "Confirm" and another "Save". but I don't want two button I want only one button "Save", on click of Save first the method called by "Confirm" button should be called and then the method called by "Save" button.
Below is my code:
<apex:commandButton value="Confirm" action="{!save}"/>
<apex:commandButton value="Save" action="javascript:top.window.opener.closeFunction()" ></apex:commandbutton>