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
Floorcraft

Floorcraft

This was a bespoke e-commerce site having problems customising. We converted it to OSCommerce maintaining the same look and feel and functionality but providing more features and possibilities for the future.