Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

manually fire event using javascript

var event = new MouseEvent('dblclick', {
    'view': window,
    'bubbles': true,
    'cancelable': true
  });
document.getElementById('aa').dispatchEvent(event);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #manually #fire #event #javascript
ADD COMMENT
Topic
Name
2+3 =