Magic Icon Print the Page (via click): Magic JavaScript

Quick Jump ↵

Usage

Add data-mjf="print_onclick|return_false" id="ELEMENT_ID" to your clickable tag.

Add <script type="text/javascript">$m.wand.print_onclick = true;</script> inside your <body> tag.

Example

Print this page!

<a href="#" data-mjf="print_onclick|return_false" id="print_this_page">Print this page!</a>

« Back to the main documentation