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();                
    }       
}

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 'windowname' 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();                
    }       
} 

Please let me know if any is having solution to this.

Hi, Please let me know if any one is having solution to this issue. I am also facing same problem in IE8

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.