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

  1. <ccResource>
  2.   <ccTitle>
  3. View Source
  4.   </ccTitle>
  5.   <ccCategory>
  6. Browser
  7.   </ccCategory>
  8.   <ccDescription>
  9. This will create a button on your webpage that will allow the user to view your HTML code.  
  10.   </ccDescription>
  11.   <ccInstructions>
  12. Place this script in anywhere on your page
  13. you want the button to show up. Works in Netscape only.  The button will 
  14. show up in IE but will not do anything when clicked.
  15.   </ccInstructions>
  16.   <ccHeadContent>
  17.   </ccHeadContent>
  18.   <ccBodyContent>
  19. <CENTER><FORM><INPUT TYPE="BUTTON" VALUE="View Source" 
  20. onClick= 'window.location = "view-source:" + window.location.href' 
  21. </FORM></CENTER>
  22.   </ccBodyContent>
  23.   <ccElementContent>
  24.   
  25.    <ccElementName></ccElementName>
  26.    <ccElementAction></ccElementAction>
  27.    
  28.   </ccElementContent>
  29.   <ccExtraData>
  30.  
  31.   </ccExtraData>
  32. </ccResource>