Laibird introduces the window. print () method, window. print

Source: Internet
Author: User

Laibird introduces the window. print () method, window. print

Definition and usage of the print () method:

This method can generate a printing setting interface, which is the same as that generated by right-clicking the window and clicking the print option.

Syntax structure:

Window. print ()

Browser support:

1. Internet Explorer supports this attribute.
2. Firefox supports this attribute.
3. operabrowser supports this attribute.
4. chrome supports this attribute.

Code example:

<! DOCTYPE html>  

The preceding Code Execution produces a printing setting interface that prints the current page.

Articles you may be interested in:
  • Web print window. print ()
  • Js window. print to print specific controls or content
  • Window. print the code of the specified div instance
  • Window. print: Specifies the method for printing a specified div in a specified area of a webpage.
  • Javascript implements window. print () to remove the header and footer

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.