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.
function printPageComponent() {
html = '';
html += ' ';
html += '';
return html;
}
function printPageLink() {
html = "\n";
html += "Print this page";
html += "";
return html;
}