javascript force button clic code example
Example 1: javascript click button by id
var button = document.getElementById("button");
button.click();
Example 2: javascript perform click
eventFire(document.getElementById('mytest1'), 'click');
var button = document.getElementById("button");
button.click();
eventFire(document.getElementById('mytest1'), 'click');