View Full Version : Look at all global values?
06-02-2006, 11:31 AM
06-02-2006, 12:04 PM
(Living up to your signature:))
I was just thinking an maybe you could loop through the Window object. That might give you a run down of what's there:
for i in window
of course, this is untested, so I may be barking up the wrong tree. one thing it won't do is differeniate variable you declare and those that are part of the DOM.
06-02-2006, 09:25 PM
I don't think it will work without the parentheses.
var sMsg = '';
for(i in window)
06-06-2006, 05:00 PM
Made an pretty ugly output, but though:)
06-06-2006, 05:04 PM
Just be careful when you use that. Iew in particular has a tendency to break down if you try to access some host objects you can find on the window object. (And elsewhere.)
Powered by vBulletin® Version 4.2.2 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.