see another example here:
You can have multiple commands in the onclick attribute, separated with “;” the trick lies in the swapping of the order.