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

  1. <ccResource>
  2.   <ccTitle>
  3. Break out of Frames
  4.   </ccTitle>
  5.   <ccCategory>
  6. Browser
  7.   </ccCategory>
  8.   <ccDescription>
  9. Break out of frames Use this javascript to make sure that your web page is not shown in someone else's frames.
  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. <!-- 
  20. setTimeout ("changePage()", 3000);
  21. function changePage() {
  22. if (self.parent.frames.length != 0)
  23. self.parent.location="http://www.coffeecup.com";
  24. }
  25. // -->
  26. </SCRIPT>
  27.   </ccBodyContent>
  28.   <ccElementContent>
  29.   
  30.    <ccElementName></ccElementName>
  31.    <ccElementAction></ccElementAction>
  32.    
  33.   </ccElementContent>
  34.   <ccExtraData>
  35.  
  36.   </ccExtraData>
  37. </ccResource>