Home » Item #710
How would I add a 'print this page' button to the site? I have tried adding JavaScript but I can't find where to add it. Any Ideas?
This can all go in the skin HTML file. Any javascript functions can be put straight in to the <head> tag there, and that way they'll be accessible from every front-end page.
However, in the case of a 'print this page' feature, you don't really need a javascript function by called the javascript:window.print() function. You can use this in either a button or a link. For example:
<a href="javascript:window.print()">Print</a>Will produce the following:
<FORM>
<input type="button" value="Print Me!" Onclick="window.print()">
</FORM>