Customize google cloud print button function
问题 Currently i am using the google cloudprint button for my site <script src="//www.google.com/cloudprint/client/cpgadget.js"></script> <script defer="defer"> var gadget = new cloudprint.Gadget(); gadget.setPrintButton(document.getElementById("custom_print_button")); gadget.setPrintDocument("url", "Cloud Print test page", "http://www.google.com/cloudprint/learn/"); </script> I want to send an email when I hit the print button, is this possible? 回答1: No problem at all... just attach an onclick