Created
August 27, 2013 10:48
-
-
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)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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