Created
May 9, 2016 21:52
-
-
Save danielnass/095526a8fcc372385fd4a41f4142c571 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For a full list of event types: https://developer.mozilla.org/en-US/docs/Web/API/document.createEvent | |
var el = document.getElementById('olar'), | |
eBlur = document.createEvent('HTMLEvents'); | |
eBlur.initEvent('blur', true, false); | |
el.dispatchEvent(eBlur); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment