I'm trying to list the functions defined by the user in javascript.
So far I have:
for (i in window)
if (typeof(window[i])==='function')
alert(window[i]);
jsfiddle: http://jsfiddle.net/sCK9v/1/
it only lists functions but (in Firefox) that includes a lot of system ones, listed as having [native code]
.
Is there a way to get the functions actually defined by the page?