JOIN DEVPPL

It looks like you are new here. If you want to get involved, click on Join below!



How to remove url and page number from header and footer


C

keyboard_arrow_up
0
keyboard_arrow_down


First Post Mark as Spam cooll1975denisemendez
Posts: 8 - Registered: 2013-05-23 09:43:14

I want to remove url and page number from header and footer while i am using javascript print command so that i can only print particular div content .
I have use this javascript function
:
<script language="javascript">
function printDiv(divName) {
var printContents = document.getElementById(divName).innerHTML;
var originalContents = document.body.innerHTML;

document.body.innerHTML = printContents;

window.print();

document.body.innerHTML = originalContents;
}

</script>

Thanks






JOIN DEVPPL

It looks like you are new here. If you want to get involved, click on Join below!




MENU
Advertising