- Where Developers Learn, Share, & Build Careers
According to this code, I am using the following code, the new window will open with the source of the URL. But when printing, it is showing: Empty printing: Before loading the page load correctly, the page URL is also: empty but it changes in the given URL.
var url = "http: // localhost: 8080 / recruitment / docs / Kenyeth% 20_1340800082258 / Kenyighth% 20_sreem_1340800082258.pdf"; Var printwindow = window.open (url, '_blank', 'fullscreen = yes'); // setTimeout ('2000); Printwindow.focus (); Printwindow.print ();
Have you tried:
printwindow .onload = function () {printwindow.focus (); Printwindow.print (); };
Comments
Post a Comment