Button - How to set up to print page being viewed?

  machins 09:31 08 Jun 2004
Locked

I want to have as form on my site that someone could enter their details and print it to post to me in the old fashioned way.
How do I configure a button to print the page being viewed please?

Thanks

  Baledor 10:21 08 Jun 2004

<script language="Javascript1.2">
<!--

function printpage() {
window.print();
}

document.write("<form><input type=button "
+"value=\""+message+"\" onClick=\"printpage()\"></form>");

//-->
</script>

This thread is now locked and can not be replied to.

Elsewhere on IDG sites

AMD Radeon Adrenalin release date, new features, compatible graphics cards

Inside the iMac Pro - Apple's most powerful Mac yet

iMac Pro release date, UK price & specs

Comment nettoyer Windows et optimiser son PC gratuitement ?