Hiding Footer
Hello,
I would like to know if anyone has a simple way to hide the page footer when printing. I'd like to incorporate it in the following function if possible:
<script type="text/javascript">
function removeelements(){
var removeclass="remove"
var alltags=document.getElementsByTagName("*")
for (i=0; i<alltags.length; i++){
if (alltags[i].className==removeclass)
alltags[i].style.display="none"
}
}
function revertback(){
setTimeout("window.location.reload()",50)
}
window.onbeforeprint=removeelements
window.onafterprint=revertback
</script>
Thanks!
*******(*)*******
__________________
*******(*)*******
|