[Javascript] Printing a Form
Del Wegener
del at delweg.com
Fri Apr 6 15:44:21 CDT 2007
Thanks Scott;
That worked and it pointed me to other interesting CSS stuff.
Soon I will be a fan of CSS.
Del
>> I would like the visitor to be able to print just the form. Is
>> that possible ? How do I do that?
>
> You can do this with a print style sheet. In your HTML <body>, you
> have something like this:
>
> <input type="button" value="Print" onclick="window.print()" id="print-
> button" />
>
> In your HTML <head>, you need something like this:
>
> <link rel="stylesheet" type"text/css" href="print.css" media="print" />
>
> In print.css, you need something like this:
>
> #print-button { display: none; }
>
More information about the Javascript
mailing list