Skip to content

Instantly share code, notes, and snippets.

@ifnull
Created October 26, 2013 01:56
Show Gist options
  • Save ifnull/7164421 to your computer and use it in GitHub Desktop.
Save ifnull/7164421 to your computer and use it in GitHub Desktop.
List all functions on a page.
var functionNames = [];
for (var f in window) if (window.hasOwnProperty(f) && typeof window[f] === 'function')
{
functionNames.push(f);
}
console.log(functionNames);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment