title: How to catch "History.Back" event in javascript?
body: <p>is it posible to catch "History.Back" event in javascript? 
  İ want to catch history.back() event and logout user.</p>
  
  <p>P.s : There is some code about disabling history.back(). But is not useful for me.</p>
  
  <pre><code>&lt;script type = "text/javascript" &gt;
   function disableBackButton()
   {
     window.history.forward();
   }
   setTimeout("disableBackButton()", 0);
  &lt;/script&gt;
  </code></pre>
  
  <p>then set <code>onunload</code> event</p>
  
  <pre><code>&lt;body onunload="disableBackButton()"&gt;
  </code></pre>