Detecting a Click Outside an Element in JavaScript

A Pen by blustemy