[Javascript] looping on window objects

Claude Schneegans schneegans at internetique.com
Tue Sep 9 15:56:57 CDT 2008


Hi,

If you try this code:
<SCRIPT>
for (var o in window) document.write(o +" : " + typeof(window[o]) + "<BR>")
</SCRIPT>

you will get a list of all objects contained in the current window.
It works fine in Opera, Mozilla, and Safari, but in Explorer 7, all
functions are missing.

Is there a better way to get everything in IE?

Thanks.




More information about the Javascript mailing list