title: Javascript fired from ASP.net codebehind runs in Chrome but not in IE9
body: <p>I have a strange issue with a small bit of code, which runs fine in Chrome but wont fire in IE9.</p>
  
  <p>I have a sub:</p>
  
  <pre><code>Private Sub MessageBox(ByVal msg As String)
          Response.Write("&lt;script language='javascript'&gt;window.alert('" + msg + "'); window.history.back(1); return false;&lt;/script&gt;")
  End Sub
  </code></pre>
  
  <p>Which is called in the Page_Load event if the page is marked as unpublished in the database.</p>
  
  <p>This works fine in Chrome, but not at all in IE (and yes i have checked JS is enabled!)</p>