Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Print from Browser
Message
From
27/09/1999 10:55:12
 
General information
Forum:
Internet
Category:
VBScript
Miscellaneous
Thread ID:
00266633
Message ID:
00269354
Views:
23
>I believe the .print method is only supported in Netscape +4.0 browsers. eeeewww!
>

Using DHTML in Internet Explorer, you can call window.print(). Here's what the SDK says:

print Method

--------------------------------------------------------------------------------

Prints the document associated with the window.

Syntax

window.print()
Return Value

No return value.

Remarks

Calling the print method has the same effect as choosing Print from the Microsoft® Internet Explorer File menu. Doing so brings up the print dialog box, prompting the user to change print settings. When the user clicks on the OK button, the following sequence of events occurs:

the onbeforeprint event fires,
the document prints, and
the onafterprint event fires.

The onbeforeprint and onafterprint events are particularly useful when not all the information on the page is visible at all times. The onbeforeprint event gives the Web author an opportunity to modify the document to make all the information on the page visible for printing purposes. The onafterprint event provides a means to revert the document back to its original state.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform