emulate event js code example
Example: trigger event javascript
// Simple trigger event
document.querySelector(theElem).dispatchEvent(new Event('mouseover'))
// Simple trigger event
document.querySelector(theElem).dispatchEvent(new Event('mouseover'))