title: asp button and history back onclientclick
body: <p>hi I have an asp button  which is created using the following code:</p>
  
  <pre><code>&lt;asp:Button ID="btnBack" OnClientClick='javascript:history.back()' runat="server" Text="back"&gt;
  &lt;/asp:Button&gt;
  </code></pre>
  
  <p>However, now the javascript doesn't work to go a history back. On the other hand, if I make an alert() it works...why. Why is it not working to go a history back?</p>