JavaScript Print Controls

Source: Internet
Author: User

JavaScript Print Controls

GitHub Address

Https://github.com/DoersGuild/jQuery.print

Need to introduce jquery before use

$ ("#mapDiv"). Print ({    globalstyles:true,//) contains the style of the parent document, and the default is True    mediaprint:false,//contains the link label for media= ' print '. Is overridden by the Globalstyles option, which defaults to False    stylesheet:null,//the URL address of the external style sheet, which defaults to null    noprintselector: ". No-print",// The jquery selector for elements that you do not want to print, the default is ". No-print"    iframe:true,//whether to use an IFRAME instead of a pop-up window to print the form, true to print on this page, false to open a new page, The default is True    append:null,//add content to the back of the print    prepend:null,//add content to the front of the print content, which you can use as the deferred to print the content    : $. Deferred ()//callback function});           

Can be agreed across the IFRAME inside

JavaScript Print Controls

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.