HBCMS更多的中文手册参考:

print Method

DHTML文档教程

Prints the document associated with the window.

dhtml语法

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. The print method activates the Print dialog box, prompting the user to change print settings. When the user clicks the OK button, the following sequence of events occurs:

  1. The onbeforeprint event fires.
  2. the document prints.
  3. 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. use the onbeforeprint to modify the document to make all the information on the page visible for printing. to return the document to its original state, use the onafterprint event.

是否符合公共标准

There is no public standard that applies to this method.

Applies To

window