how to fire an event in javascript 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'))