NetTalk Central

Author Topic: Print the current page  (Read 17644 times)

Flint

  • Newbie
  • *
  • Posts: 3
    • View Profile
Print the current page
« on: October 04, 2007, 11:19:52 AM »
I found a very useful snippet of javascript code that may be useful to those trying to add such a feature to their servers/pages:

<script language="JavaScript" type="text/javascript">  if (window.print) {
document.write('<a href="javascript:window.print()" title="print this page">print this page</a>'); }
</script>

This will give the user the opportunity to print the current page, as is the norm on so many websites these days.  I added it to the XHTML tab of my NetWebForm proceudre and it works like a champ!

Hope this helps!
- Flint