Click a button and process the click event at js.