Click to See Complete Forum and Search --> : print script - remove headers - footers


ovisopa
09-11-2003, 03:46 AM
Hello ppl,

I'm using this script to print a page but when the page is printed i see an header and a footer on the paper with title of the page and Page 1 of 1 in the header and the link of the page in the footer.

Can somebody tell me how can I remove the header and foo. from there ? I'm using an network printer and I didn't find anything in the preferences of the printer ... or inInternet explorer :( .


<SCRIPT type="text/javascript" language="JavaScript">
var bName = navigator.appName;
var bVer = parseInt(navigator.appVersion);
var NS4 = (bName == "Netscape" && bVer >= 4);
var IE4 = (bName == "Microsoft Internet Explorer" && bVer >= 4);
function PrintThisPage() {
if ((typeof(window.print) != 'undefined') && (NS4 || IE4)){
if (IE4){
window.print(); }
if (NS4){
window.print(); } }
else {
alert('Tipariti aceasta pagina apasand combinatia\n de taste Ctrl-P sau Command-P.\n'); } }
</SCRIPT>


10x in advance

see ya

Fang
09-11-2003, 04:14 AM
Is the page setup, header and footer empty in Internet Explorer?

ovisopa
09-11-2003, 04:28 AM
I was only searching for a setup in "Tools->Internet Optins.." and forgot about File page setup, probably it's because I'm tired :)

10x

and see ya