homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
Forum Library, Charter, Moderator: open

JavaScript and AJAX Forum

list all declared JavaScript variables
can it be done?
Purple Martin

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

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?




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

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.



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

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

Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved