MaggsWeb:7

www.maggsweb.com

This is another functionality that I have been looking or for a while. I haven’t tried it yet, but intend to add this to my default toolbox! I am sticking it here for now – and will update this when I have used it.

?View Code JAVASCRIPT
 
function printPageComponent() {
  html  = '<div id="print-page">';
  html += '  <input class="button" \n';
  html += '         id="print-page-button" \n';
  html += '         onclick="window.print();" \n';
  html += '         onmouseup="this.blur();" \n';
  html += '         title="Print the current page." \n';
  html += '         type="button" \n';
  html += '         value="Print this page"';
  html += '   />';
  html += '</div>';
  return html;
}
 
function printPageLink() {
  html  = "<span id=\"component-box-print-link\" \n";
  html += "      class=\"button\"\n";
  html += "      onclick=\"window.print();\">\n";
  html += "Print this page";
  html += "</span>";
  return html;
}

Write a Comment

Let me know what you think?