I am having 2 buttons A & B and I need to call the function defined in onclick HTML attribute of button B but on click of button A.
Also I need to pass an extra