Actually, even though this has nothing to do with JSP, yes you can do that.
onLoad=window.print() pops up the print dialog box in Netscape.  Technology
is meant to be abused.

Evan Owens

-----Original Message-----
From: Caspar van Vroonhoven [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 07, 2000 5:44 PM
To: [EMAIL PROTECTED]
Subject: Re: help for printing html page


I'm sorry to say, but:

1) This has nothing to do with JSP...
2) You can't communicate with a printer on an HTML page (!) Image what would
happen if you could.. (onLoad=print() or something.. that would be
horrible..)

regards,

Caspar van Vroonhoven
www.tradingcars.com
Amsterdam, the Netherlands
-----Original Message-----
From: umesh singh [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 07, 2000 10:22 AM
To: [EMAIL PROTECTED]
Subject: Re: help for printing html page


Hi
You can use simple javascript to print the page as
follows:
javascript:window.print()
I am using this code with a link naed Print but I am
sure this will work with button click too..
Hopefully this will solve the problem
Bye
Umesh

--- nil <[EMAIL PROTECTED]> wrote:
> Hi ,
>
> This is what  I want.
>
> Pls. help me ASAP.
>
> Is it possible to map the toolbar printing button
> function
> with button Onclick event  in Browser?
> B'cos I am opening a new window which does not
> provide any toolbar or menu.
> so for printing that form I am keeping one print
> button on it, that will
> serve the
> purposeof priniting the document.
>
> this is what I want
>
> <input type = button onclick=print() value=print>

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to