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
Kiwi Cakes

Kiwi Cakes

This New Zeland Site benefitted from a new CRE Loaded 6.5 makeover and a Point of Sales page