Friday, September 4, 2009

Print Using Javascript


function CallPrint()
{
var prtContent = document.getElementById('Print');
var WinPrint = window.open('','','top=0,width=800,height=700,left=120,scrollbars=yes,status=0');
WinPrint.document.write(prtContent.innerHTML);
WinPrint.document.close();
WinPrint.focus();
WinPrint.print();
WinPrint.close();
prtContent.innerHTML=strOldOne;
}



No comments:

Post a Comment