click won simulate javascript code example
Example 1: js trigger click
var element = document.getElementById('element');
element.click();
Example 2: javascript perform click
eventFire(document.getElementById('mytest1'), 'click');
var element = document.getElementById('element');
element.click();
eventFire(document.getElementById('mytest1'), 'click');