trigger event click javascript code example
Example 1: js trigger click
var element = document.getElementById('element');
element.click();
Example 2: trigger event javascript
// Simple trigger event
document.querySelector(theElem).dispatchEvent(new Event('mouseover'))