I have a Iframe on my aspx page.
How can i print iframe using javascript. i have below code,
function CheckIsIE() {
if (navigator.appName.toUpperCase() == 'MICROSOFT INTERNET EXPLORER') { return true; }
else { return false; }
}
function PrintThisPage() {
if (CheckIsIE() == true) {
document.Iframe.focus();
document.Iframe.print();
}
else {
window.frames['Iframe'].focus();
window.frames['Iframe'].print();
}
}
it works but it not print all pages of iframe.
Go to the complete details ...