samasamajam
Programmer
I have a requirement where i have to print the page contents in a printable format. For this i have to open the printable format in a new window and issue the print command.
i am using window.open for opening teh new window. In the body tag of the new window i have the following code..
<body onload="javascript:window.print()" onfocus="javascript:window.close()">
With this code i print the page and close the window. This works fine with IE. But with netscape 7.1 the print doesn't work. This is bcoz the window.close is being called even before the print spooling happens. COuld anyone help me with this where i can ensure that spooling of data is complete.
i am using window.open for opening teh new window. In the body tag of the new window i have the following code..
<body onload="javascript:window.print()" onfocus="javascript:window.close()">
With this code i print the page and close the window. This works fine with IE. But with netscape 7.1 the print doesn't work. This is bcoz the window.close is being called even before the print spooling happens. COuld anyone help me with this where i can ensure that spooling of data is complete.