Print a area from a webPage

<iframe name=”print_frame” width=”0″ height=”0″ frameborder=”0″ src=”about:blank”></iframe>
<script language=”javascript” type=”text/javascript”>
function printuaframe(divId)
{
var printDivCSS = new String (‘<link href=”https://www.eptanks.com/catalog/view/theme/default-bootstrap/bootstrap/css/bootstrap.css” rel=”stylesheet” type=”text/css”>’)
window.frames[“print_frame”].document.body.innerHTML=printDivCSS+document.getElementById(divId).innerHTML;
window.frames[“print_frame”].window.focus();
window.frames[“print_frame”].window.print();
}
</script>

Similar Posts

Leave a Reply

Your email address will not be published. Required fields are marked *