Recent Features
![Write Better JavaScript with Promises]()
Write Better JavaScript with Promises
You've probably heard the talk around the water cooler about how promises are the future. All of the cool kids are using them, but you don't see what makes them so special. Can't you just use a callback? What's the big deal? In this article, we'll...
![How I Stopped WordPress Comment Spam]()
How I Stopped WordPress Comment Spam
I love almost every part of being a tech blogger: learning, preaching, bantering, researching. The one part about blogging that I absolutely loathe: dealing with SPAM comments. For the past two years, my blog has registered 8,000+ SPAM comments per day. PER DAY. Bloating my database...
Incredible Demos
![JavaScript Copy to Clipboard]()
JavaScript Copy to Clipboard
"Copy to clipboard" functionality is something we all use dozens of times daily but the client side API around it has always been lacking; some older APIs and browser implementations required a scary "are you sure?"-style dialog before the content would be copied to clipboard -- not great for...
![HTML5’s window.postMessage API]()
HTML5’s window.postMessage API
One of the little known HTML5 APIs is the window.postMessage API.
window.postMessageallows for sending data messages between two windows/frames across domains. Essentially window.postMessage acts as cross-domain AJAX without the server shims. Let's take a look at howwindow.postMessageworks and how you...


