Created
September 5, 2025 10:44
-
-
Save martyglaubitz/574b66c1402c9b8261b164bfb52ac179 to your computer and use it in GitHub Desktop.
Get all document event names
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
function getAllDocumentEvents() { | |
var result = []; | |
for (key in document) { | |
if (key.startsWith('on')) { | |
result.push(key.substring(2)); | |
} | |
} | |
return result; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment