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
Active Mobility

Active Mobility

Active Mobility sell items which may qualify for VAT relief if the customer completes a form.

This work involved integrating a new form into the OSCommerce checkout procedure and adjusting prices appropriately.