Frames

They have: 38 posts

Joined: Dec 2002

I have a clients site that was done in frames. They dont want that to change. I am building a store, non frames. How can I link back to their pages from non-frames to frames without the individual pages coming out of their frames?

Thanks!

They have: 21 posts

Joined: Apr 2003

I wouldn't have a clue:confused:

Suzanne's picture

She has: 5,507 posts

Joined: Feb 2000

Complex solution:

Put this in the HEAD element on the static pages:

<script type="text/javascript">
<!--
if(self!=top) top.location=self.location
//-->
&lt;/script&gt;
'

Simple Solution:

Alternatively, use the href attribute target as designed:

<a href="shouldn't be in a frame.html" target="_top">link</a>
'

They have: 10 posts

Joined: Jun 2003

Better solution, convince (try again) them to move away from frame.

Suzanne's picture

She has: 5,507 posts

Joined: Feb 2000

Fiddle faddle. If the client is intractable, do not try to convince them, you're just asking for them to lose respect for you. Instead, do what they are asking for and once done, point out how much better the static pages work.

Targets are necessary for frames, it's not unusual or a workaround, it's how to do it.

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.