Topic awaiting preservation: printing with a script (Page 1 of 1) |
|
---|---|
Obsessive-Compulsive (I) Inmate From: Jakarta |
posted 09-26-2003 04:27
hi, i want to print a page with javascript when user click a button..can javascript do this ? and can we set the margins, the tittle with javascript ? .at page setup menu in internet explorer we find margins, header, footer, orientation but can we set up these properties with a script so i want to specifically set this properties only at my page? and when user want to print the page from other website they will use the default setting, help me plzz n thank u for your help... |
Paranoid (IV) Inmate From: Lebanon |
posted 09-26-2003 09:42
In IE, AFAIK you can use the window.print() command |
Bipolar (III) Inmate From: Amsterdam |
posted 09-27-2003 11:25
Ok, it sounds like you want to make a seperate stylesheet just for printing. That would be |
Obsessive-Compulsive (I) Inmate From: Jakarta |
posted 09-29-2003 03:54
yes, that's right. but what code should i put on print.css ? i want to setup the margins, header and the footer for my paper. because if we use the default page setup from IE, it put the title of the page as the header n the url as the footer and the margins are too high, it will consume the space of my paper. my clients only want to print the information on 1 page so i would like to free some space. thank you for the responds lallous n nevel |
Maniac (V) Inmate From: Den Haag: The Royal Residence |
posted 09-29-2003 07:50
There is a very usefull page at ala: |
Bipolar (III) Inmate From: Amsterdam |
posted 09-29-2003 11:48
And of course there's the tutorial: http://www.gurusnetwork.com/tutorials/css/cssprint/cssprint1.html |