Melba wrote:
> Hi everybody !!
> I need to know when my HTML page is being printed.
You absolutely can't reliably determine when (or if) your page is being
(or has been) printed using JavaScript. Even if the user's browser
supports the methods you are using, they may have JavaScript turned
off, or may be using some other application to display and print your
page.
> I know there are some events (onbeforeprint and onafterprint), but they
> are firing befor the printing
onafterprint is defined by Microsoft as:
"Fires on the object immediately after its associated document prints
or previews for printing"
<URL:http://msdn.microsoft.com/workshop/author/dhtml/reference/events/onafterprint.asp>
If that is not happening, then talk to Microsoft.
> and if someone cancels the printing i can
> not know that.
Those two events are Microsoft proprietary events, there is no public
standard and likely poor support outside Windows/IE. Firefox does not
support them. You will likely rarely 'know that'.
>
> Please Help me !!
A useful and informative subject will assist in getting help more
readily.
>
> Thanks
> Tamara.
>
--
Rob