Jump to content

Javascript variables


griffinmt

Recommended Posts

There are far more variable names in use than just the ones you declare, so there's no way to just get a list of the ones you created .The question is why you need them, though.

This will show you everything that's in the global scope but it's probably much more than what you want to see.

var output = "";for(i in window) {    output += (typeof window[i]) + " " + i + " : " + window[i] + "n";}alert(output);
  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...