Created
January 30, 2019 18:40
-
-
Save carlin-q-scott/bdca8327460eb351c0a5f2b5bcb1d005 to your computer and use it in GitHub Desktop.
DOM Inspection Scripts
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
/* | |
This function will list all of the functions on an HTML DOM Element that are non-standard. | |
temp0 is set by the Firefox Inspector when you right click on an element and choose "use in console"; | |
You need to do that before running this script. | |
*/ | |
var functionList = ""; | |
var element = document.createElement('div'); | |
for(var p in temp0){ | |
if (typeof temp0[p] == 'function' && typeof element[p] == 'undefined') functionList += ", " + p; | |
} | |
functionList = functionList.substring(2); //remove the preceeding ", " | |
console.log(functionList); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment