Graith Internet Services | Ideas |About Us |Contact Us

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
Z2 Clothing

Z2 Clothing

Z2 Clothing moved to us for the experienced support we could give for their OSCommerce website. We then gave the site a makeover with a new look and lots of new features.