home *** CD-ROM | disk | FTP | other *** search
/ PC User 2005 May / CD / PCU0505CD.iso / software / full / coffecup / files / html2005.exe / %MAINDIR% / Javascript / PrintPage.xml < prev    next >
Encoding:
Text File  |  2005-02-16  |  815 b   |  36 lines

  1. <ccResource>
  2.   <ccTitle>
  3. Print Page
  4.   </ccTitle>
  5.   <ccCategory>
  6. Browser
  7.   </ccCategory>
  8.   <ccDescription>
  9. Use this script to have your users print your HTML page.
  10.   </ccDescription>
  11.   <ccInstructions>
  12. The code goes only inside the BODY tags.  You can change the items below to suit your needs.
  13.   </ccInstructions>
  14.   <ccHeadContent>
  15.   
  16.   </ccHeadContent>
  17.   <ccBodyContent>
  18. <SCRIPT LANGUAGE="JavaScript">
  19. if (window.print) {
  20. document.write('<form> '
  21. + '<input type=button name=print value="Click" '
  22. + 'onClick="javascript:window.print()"> To Print this page!</form>');
  23. }
  24. // End -->
  25. </script>
  26.   </ccBodyContent>
  27.   <ccElementContent>
  28.   
  29.    <ccElementName></ccElementName>
  30.    <ccElementAction></ccElementAction>
  31.    
  32.   </ccElementContent>
  33.   <ccExtraData>
  34.  
  35.   </ccExtraData>
  36. </ccResource>