[thelist] javascript print function?

Minh Lee Goon v7ac at sdsumus.sdstate.edu
Tue May 7 13:41:07 CDT 2002


David,
Try using the following:
   <input type="Button" onClick="window.print();">

HTH,
Minh Lee Goon


David Prowak wrote:
>
> Hi,
> I'd like a user to be ably to print a web page upon
> clicking a button.  (I want to print out a map &
> directions.)
>
> Is there a cross-browser method in javascript to
> print?
>
> TIA,
> Dave



More information about the thelist mailing list