print div in chrome with css not working
<p>I am using window.print(); for print specific part on web page, its working on firefox browser but not working correctly in Chrome it showing me blank print preview.</p>

<pre><code> &lt;script type="text/javascript"&gt;
    function printDiv() {
    var divToPrint = document.getElementById('table');
    var htmlToPrint = '' +
        '&lt;link href="../bootstrap/css/bootstrap.min.css" rel="stylesheet" type="text/css" /&gt;'+
        '&lt;link href="../dist/css/AdminLTE.min.css" rel="stylesheet" type="text/css" /&gt;';
        $(document).ready(function() {
    $('#customers').dataTable();
        } );
    htmlToPrint += divToPrint.outerHTML;
    newWin = window.open("");
    newWin.document.write(htmlToPrint);
    newWin.print();
    newWin.close();
}
    &lt;/script&gt;
</code></pre>

<p>the above code was working fine in chrome also but from last 15 days it's not working in chrome but working in firefox</p>