title: JavaScript Call and Apply in internet explorer 8 (and 7) for window.print
body: <p>OK, I looked a lot for this on the web but cannot find an answer.</p>
  
  <p>I can expect CSS differences between browsers but there are JavaScript differences too? </p>
  
  <p>So why this works in IE8:</p>
  
  <pre><code>window.print(); // works
  </code></pre>
  
  <p>but when I pass <code>window.print</code> to a function and call it, it don't work in IE8 (<strong>works in IE9</strong>):</p>
  
  <pre><code>function callIt(f){
      f.call();
  };
  
  
  
  callIt(window.print);
  </code></pre>
  
  <p>Is it a known issue?</p>
  
  <hr>
  
  <h1>EDIT</h1>
  
  <p><s>OK it does not work means it will simply ignore it, no javascript error or anything.</s></p>
  
  <p>Sorry it gives this error:</p>
  
  <pre><code>   Object doesn't support this property or method
  </code></pre>
  
  <h1>EDIT 2</h1>
  
  <p>I need to use <code>call</code> or <code>apply</code> since I need to pass the context. I am trying to create a class which I can pass functions and it can call it with the possibility of passing context or arguments. Do not tell me to use <code>f()</code> <strong>that is not an answer</strong> since it does not fix my problem. <strong>The question is on <code>call</code> and <code>apply</code>.</strong></p>