Javascript

if (window.frames) 
   { 
      if (parent == self) 
      { 
      location.href="../index.php?loc="
        + location.pathname; 
      } 
   }                     

What does this code do?

Many experienced Web designers know a bit of Javascript and know some of what can be done with Javascript - usually they just use the WYSIWYG web tools to write the code for them.

Sometimes you need more.

Graith Internet has knowledge and experience writing Javascript solutions to complex Intranet and Internet web services.

Answer

The code above is part of a solution devised to ensure one Website could use frames without getting their content included in anyone elses' site.

Wouldn't it be useful to have a web form that remembered what you entered so that if you have to fill it in a second time it doesn't take so long? You can do this easily with Javascript and Cookies.
featured website
Charnwood Catalogue

Charnwood Catalogue

This client had an MS2 OSC store with an unfinished design. The store was converted to CRE Loaded

Modifications to the product details page show the price dynamically change with option or price break quantity.