title: <A HREF=javascript:printDoc()>*Link</A> Does not call its javascript function in internet explorer
body: <p>Need your help on this.  </p>
  
  <pre class="lang-html prettyprint-override"><code>&lt;A HREF=javascript:printDoc()&gt;Link&lt;/A&gt;
  </code></pre>
  
  <pre class="lang-js prettyprint-override"><code>function printDoc()
  {
      window.print();
  }
  </code></pre>
  
  <p>I am using a hyperlink to call a JavaScript function that prints the page. It works perfectly on Chrome, but not on Internet Explorer.</p>
  
  <p>What can be the possible solution?</p>