Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Print from Browser
Message
De
27/09/1999 10:55:12
 
Information générale
Forum:
Internet
Catégorie:
VBScript
Divers
Thread ID:
00266633
Message ID:
00269354
Vues:
22
>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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform