Welcome to WebmasterWorld Guest from 23.22.250.113

Forum Moderators: open

Message Too Old, No Replies

list all declared JavaScript variables

can it be done?

     

Purple Martin

10:30 pm on Aug 5, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Is there a way to get a list of all user-defined JavaScript variables that have been declared in a page? Presumably the browser must hold them in some kind of array object, so can I access this object somehow?

Thanks

claus

11:46 pm on Aug 5, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



well... sort of.. if you're using IE, there's a nifty tool called "Document tree" you can use - it's not just doing what you're asking, but it also does this.

1) Search for "Microsoft Web Developer Accessories" at your favorite Search Engine.

2) Download and install.

3) Visit the page, right click it, choose "Document Tree"

4) A new window will pop-up with all page properties. Locate "all" and click it, and there it is along with a lot of numbers.

/claus

wkitty42

11:51 pm on Aug 5, 2003 (gmt 0)

10+ Year Member



i'm not fully positive but would the DOM inspector in Mozilla do that for you?
 

Featured Threads

Hot Threads This Week

Hot Threads This Month