Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Change Browser Header & Footer

Status
Not open for further replies.

jobyk

Programmer
Jun 24, 2001
19
IN
My task is to change header, footer and left/right/top/bottom margins from JavaScript on print form of the page in Internet Explorer.
(Not confuse with margins in the tag <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">)
For example, by default when printing a page Internet Explorer added to each printed page following header &w&bPage &p of &P (that means word "Page", number of current page and nuber of total pages) footer &u&b&d(fool URL to the page) and default margins 19,05.
I need to set 0.00 margins and no header and footer for printing a page(for text to begin from top left corner of paper page. WITHOUT ANY SPACES!).

How can I do setup of the printing form of the page from JavaScript or by any other way (may be CSS?) from my web page. I need to do this for Internet Explorer but if that will work in other browsers it would be better.

Will be very thankful for any help in solving this task
 
This cannot be accomplished using JavaScript, CSS, or HTML. You can use an ActiveX script such as the one found here: but the user will be prompted to install the script.

Adam
while(ignorance){perpetuate(violence,fear,hatred);life=life-1};
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top