Created
January 10, 2022 00:09
-
-
Save neodigm/e0526e2ffe3ef73e7030d9a1382f67e3 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
var simuClick = function (elem) { | |
var evt = new MouseEvent("click", { | |
bubbles: true, | |
cancelable: true, | |
view: window | |
}); | |
var canceled = !elem.dispatchEvent(evt); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment