Hi all!
this is my first post in this site.. the following code works fine with ff but not with ie 8 - i had given [B]'windowname' [/B]in the place of '_blank' for ff, but that did not allow ie to open the window, so replaced it with blank, now the issue is the 'site' opens, but the code that follows to print and close the page does not work. any solution??
function printWindow()
{
windowname = window.open("site","_blank");
windowname.onload = function() { startPrinting();}
function startPrinting()
{
setTimeout('windowname.close();',2000);
windowname .print();
}
}