Skip to content

Instantly share code, notes, and snippets.

@anneallen
Created July 21, 2013 01:50
Show Gist options
  • Select an option

  • Save anneallen/6047160 to your computer and use it in GitHub Desktop.

Select an option

Save anneallen/6047160 to your computer and use it in GitHub Desktop.
Add print functionality
<div class="printer" title="">
<script language="JavaScript">
if (window.print) {
document.write('<form> ' + '<input type=button name=print value="" ' + 'onClick="javascript:window.print()"></form>');
}
</script>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment