how to remove the footer and header from a web page while printing
-
I am trying to print a HTML page from IE. So any body have an idea that how can I remove the footer and header from a web page using IE through code, while printing. I know that it can be done by File > Page Setup > Header and Footer. But I want to do it by code. So any javascript magic or any style sheet trick? .....Thanks in Advance.
-
I am trying to print a HTML page from IE. So any body have an idea that how can I remove the footer and header from a web page using IE through code, while printing. I know that it can be done by File > Page Setup > Header and Footer. But I want to do it by code. So any javascript magic or any style sheet trick? .....Thanks in Advance.
use window.open method and document.write() method to printing like this: var wnd = window.open("","",""); wnd.document.write(document.body.innerHTML);//or your html string wnd.print(); Everlasting love for angela.