Snippets

Here's some of my tips, tweaks and tuts, ranging from PHP, Linux, MySQL and more!

Snippets / JavaScript

List all global variables in JavaScript

An easy way to list all of the global variables available the window object:

keys(window);

// returns array obj
// ["window", "location", "external", "chrome", "document", "$", "jQuery", "_gaq"]

10 years ago / Read More