Enumerate window elements

More location bar silliness, this time showing you all the members defined on the window object. This will probably wrap quite badly, so I'm colorizing it a bit for readability, but it will allow you to just copy and paste.

javascript:(function(){for (var i in window) { document.body.appendChild(document.createTextNode(i)); document.body.appendChild(document.createElement("BR"));} })()

This comes in handy if you're looking for global variables defined and constructors (unless you're using IE, in which case these exist but do not necessarily enumerated - blessing or curse, pick your favorite). The list is interesting to see and can sometimes be used to figure out whether your browser has some specific capability you're interested in, like localStorage or captureEvents.


Skip to main content