Welcome to WebmasterWorld Guest from 54.146.221.231

Forum Moderators: open

Message Too Old, No Replies

list all declared JavaScript variables

can it be done?

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

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Jan 21, 2002
posts:977
votes: 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?

Thanks

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

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:June 15, 2003
posts:2395
votes: 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.

/claus

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

Preferred Member

10+ Year Member

joined:May 14, 2003
posts:376
votes: 0


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

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members