News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Floating 'Print this page' button in "printpage" action

Started by Biology Forums, April 09, 2014, 07:39:10 PM

Previous topic - Next topic

Biology Forums

This allows for easy print access once you're in the "printpage" action.

Find:

<h1 class="largetext">', $context['forum_name'], '</h1>

Add above:

<div style="position: fixed; right: 10px; top: 10px;"><button onclick="myFunction()">Print this page</button><script>
function myFunction()
{
window.print();
}
</script></div>

Advertisement: