
I would like to put a print button on a web page. The trouble is that wikidot's print function doesn't quite fit the website.
So, the alternative is to utilise the browser's print function.
This can be done via html/javascript:
<a href="#" onclick="window.print()">Print me!</a>
or
<A HREF="javascript:window.print()">Print</A>
Now, to insert either of these into a wiki; iframes must be used, referencing the code blocks.
The trouble with this, is that (when pushed) the browser prints the iframed page and not the parent!
Can anybody think of a different way / tweaked javascript that can achieve what I'm looking for?
Thanks.
