title: Why window.print is printing all pages in IE but only one page in firefox?
body: <p>I am having a JSP page, where i am dynamically creating a Table data. ( My page is having only table, and nothing else ).</p>
  
  <p>Number of rows in table can go upto 1000s.</p>
  
  <p>What i am doing is: 
  after the complete page i have written</p>
  
  <pre><code>&lt;script&gt;
  function printPage(){
       window.print();
  }
  &lt;/script&gt;
  </code></pre>
  
  <p>This code is working fine to print all pages in IE. but when the same code is run in Firefox it prints only first page. What could be the possible reason?</p>
  
  <p>Initially i thought this might be related to page breaks in page then i used this too</p>
  
  <pre><code>&lt;core:forEach var="result" items="${command.resultsList}" varStatus="counter"&gt;
  &lt;core:if test="${(counter.index + 1)%40 eq 0}"&gt;
      &lt;tr class="breakMe"&gt;&lt;/tr&gt;
  &lt;/core:if&gt;
      &lt;tr&gt;
       code here
      &lt;/tr&gt;
  &lt;/core:forEach&gt;
  </code></pre>
  
  <p>This way the table is broken into chunks of 40 rows, now in IE every page is having 40 rows ,while in FF still it is printing first page with 40 rows. What could be the possible solution?</p>