Javascript window.open firefox/chrome issue

Posted by Adelave on Stack Overflow See other posts from Stack Overflow or by Adelave
Published on 2010-04-13T08:03:04Z Indexed on 2010/04/13 9:43 UTC
Read the original article Hit count: 534

Hi, I've application to open popup window to print page.

function printHTML(urlPath) {
 var printPopUp = window.open(urlPath,null,"height=600,width=777,status=yes,toolbar=no,menubar=no,location=no,scrollbars=yes");
 printPopUp.print();
}

This script is working fine in IE, but in firefox/chrome. print() function is overlapping window.open, as a result print dialog is showing first while screen is still loading. I need to close print dialog in order to render page properly then print manually.

Please advise.

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about ie