Hello, this question is for the JS experts out there.
I use this next piece of code to get all the JavaScript function names which exist under the dom root.
for(var x in window){
val = ""+window[x];
if(startsWith(val,"function")){ //only functions
alert(val)
}
}
While this code works perfectly on Firefox and Chrome it doesn't seem to work on IE8. It seems as if the functions do not exist under the window element in IE.
Do you have any idea how would I make it to work on IE? Thank you!