title: jQuery $('html, body').not()
body: <p><a href="http://jsfiddle.net/m2eqS/1/" rel="nofollow">here</a> - I want alert to happen when you click anywhere but not on the div. </p>
  
  <p>When I click on div, alerts shows too.</p>
  
  <p><em><strong>JS</em></strong></p>
  
  <pre><code>$("html, body").not('.entry-content').click(function() {            
      alert('d');                        
  }); ​
  </code></pre>
  
  <p><em><strong>HTML</em></strong></p>
  
  <pre><code>&lt;div class="entry-content"&gt; kkkk &lt;/div&gt;​
  </code></pre>