title: SCRIPT1002: Syntax Error, Line 1 Character 6
body: <p>In the IE developer (F12) console, I've managed to get my pages to run without errors; all but one!</p>
  
  <blockquote>
    <p>SCRIPT1002: Syntax error<br>
     mypage.php, line 1 character 6</p>
  </blockquote>
  
  <p>I am using IE9.  Whats it's problem?</p>
  
  <p>This is my code:</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;head&gt;
    &lt;script type='text/javascript' src='/files/jquery-1.7.2.min.js'&gt;&lt;/script&gt;
    &lt;script type="text/javascript"&gt;
      $(document).ready(function() {
        $("#donateButton").click(function() {
          alert('hey');
        });
      });
    &lt;/script&gt;
  &lt;/head&gt;
  &lt;body&gt;
    &lt;a href="javascript:void();" id="donateButton"&gt;asdsadasd&lt;/a&gt;
  &lt;/body&gt;
  </code></pre>
  
  <p>When I click on <code>#donateButton</code> an error is produced. However, when I change <code>javascript:void()</code> to <code>#</code> then no error occurs any more. Why?</p>