Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript thread: printing a web page without any header and footer


Message #1 by Murugesan R <Murugesr@t...> on Thu, 26 Jul 2001 01:36:21 -0400
If you simply want to print a page yourself, you can change the settings 
in your browser under page setup or print setup.  If you are trying to 
force a change on someone looking at your web page, I don't think you can 
do it, unless you can access these settings in the browser.  (I think IE 
does allow you to do some browser menu functions from JavaScript.)

If you try to alter the registry on another person's PC as someone 
suggested, you will only be able to do this on the Windows platform (and 
maybe only on IE also), but more importantly I'd class this as tampering 
and I strongly recommend against doing this.  If I found someone doing 
that to my machine, that would be the last time I visited their web-
site... and I might warn others not to go there either.

Cheers,
Paul.

> 	I want to printing a web page without any header and footer.
> can i set these property(Header & Footer)  using  JavaScript..
> Please, send me the javascript code  that how to set.

  Return to Index