Click to See Complete Forum and Search --> : print javascript


mettea
10-13-2004, 02:41 AM
not quite sure where to put this question - but here goes:
Is there a way to letting the user print a HMTL page without the titel and date (header and footer)??

Exuro
10-18-2004, 08:59 PM
You can disable the header and footer by changing the "Page Setup" preferences in your browser. You can't disable them for your users, they have to do it themselves.

PeOfEo
10-18-2004, 09:42 PM
moved to the html section.

Stephen Philbin
10-18-2004, 11:27 PM
Kinda hard to tell what you're asking about here since your thread title has nothing at all to do with the thread question. But seeing as the question has been answered..... I'll answer the title.

The easy way to make javascript appear on screen rather than be used by the browser is to write your javascript as normal, but instead of placing <scriptscript type="text/javascript"> and </script> around your script, place <scriptscript type="text/javascript"> and </script>

Exuro
10-19-2004, 12:26 AM
Originally posted by Mr Herer
Kinda hard to tell what you're asking about here since your thread title has nothing at all to do with the thread question.
He was asking if there was a JavaScript to control printing options (a "print javascript") so that he could disable the header and footer that browsers add to the pages by default. At least that's how I took it...