Tryied window.open with Ajax, window.print not working (IE9)
<p>I'm trying to open new window and send form data with javascript and jquery-1.8.3.</p>

<p>With Bernhard's help I succeeded to call a new window with page for print.</p>

<p>(Thank you so much Bernhard. <a href="http://stackoverflow.com/questions/14226470/window-open-and-sending-form-data-not-working">window.open and sending form data not working</a>)</p>

<p>But, <code>window.print()</code> function does not working in IE9! (FF, Chorme do well)</p>

<p>I refreshed the page, then IE9 calls <code>window.print()</code></p>

<p>Here is source code.</p>

<pre><code>&lt;a href="#" onclick="printPage()"&gt;Print this&lt;/a&gt;

&lt;script type="text/javascript" src="/common/js/jquery-1.8.3.min.js"&gt;&lt;/script&gt;
&lt;script type="text/javascript"&gt;

function printPage(){

    $.post('/common/print.jsp', {view:$("#ctn").html()}).success(function(response){
        var oWindow = window.open('', "printWindow", "width=700px,height=800px");
        oWindow.document.write(response);
        oWindow.print(); // I added this line. But IE9 not working.
    });
}
&lt;/script&gt;
</code></pre>

<p>Is there something I missed?</p>
