Print content of iFrame to Printer using javascript

function printFrame() {
// id is id of iFrame
            var frm = document.getElementById(id).contentWindow;
            frm.focus();// focus on contentWindow is needed on some ie versions
            frm.print();
            return false;
}

Comments

Popular posts from this blog

ASP Net API pass parameter frombody

Using Microsoft.Office.Interop.Word and Excel in ASP NET Web App