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
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