title: Detect click outside element (vanilla JavaScript)
body: <p>I have searched for a good solution everywhere, yet I can't find one which does <strong>not use jQuery</strong>.</p>
  
  <p>Is there a cross-browser, normal way (without weird hacks or easy to break code), to detect a click outside of an element (which may or may not have children)?</p>