Skip to content

Instantly share code, notes, and snippets.

@oisinkim
Created August 27, 2013 10:48
Show Gist options
  • Select an option

  • Save oisinkim/6352085 to your computer and use it in GitHub Desktop.

Select an option

Save oisinkim/6352085 to your computer and use it in GitHub Desktop.
Output window properties to the console (inspecting a browser window object in JS)
try {
for (var i in window){
if (window.hasOwnProperty(i)) {
console.log(i + unescape("%0A"));
}
}
} catch(e) {
console.log(e.message);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment