Getting out of frames

G

Guest

I created a frame page in my website:
http://www.digitalartsphotography.com/wedpics/index.htm

When users click any of the links in the lower frame I want them to get out
of frames entirely and just view the other pages with no frame. As it is,
users are taken to a new frames page, with the target page in the bottom
frame. I want frames to go away completely!

Here is the HTML text used in these links

<a target="_top"
href="http://www.digitalartsphotography.com/artstore/index.htm">
<font color="#C8C8C8"> Gallery
Index</font></a></font></p>

What do I need to change to display the new page with no frames?
 
G

Guest

I would like to add that I researched this before posting and the "_top"
target was recommended as the solution to clearing out of frames. I did this
but it is not working for some reason. Take a look at the webpage. My links
are in the bottom frame. I think the link is working OK, but it is not
clearing the top frame out of the way. What's up?
 
T

Trevor L.

I am an amateur but I find that the href
http://www.digitalartsphotography.com/wedpics/weddingphotoclarkstonwashington.htm
gets you to the photo in a full frame and the backward/forward links are
still there.

Would there be some way to refer to each page like this ?
(BTW, I thought _top was the answer also)

This may also help
http://www.w3schools.com/htmldom/dom_obj_window.asp
go the line:Trapped in a frame? This is how you break out of frames
It seems to work
--
Cheers,
Trevor L.
Website: http://tandcl.homemail.com.au
I would like to add that I researched this before posting and the
"_top" target was recommended as the solution to clearing out of
frames. I did this but it is not working for some reason. Take a
look at the webpage. My links are in the bottom frame. I think the
link is working OK, but it is not clearing the top frame out of the
way. What's up?


I choose Polesoft Lockspam to fight spam, and you?
http://www.polesoft.com/refer.html
 
T

Trevor L.

I just experimented a bit and this works

I have a frameset containing 3 named frames - heading, sidebar and main

In sidebar, I placed this code:
<a href="#" onclick="window.top.location='sitemap.html'">
and it opened sitemap.html in the top frameset i.e. it broke out of the
frame.
When I went back, it went back to the frame
 
T

Trevor L.

Hi, DigitalArts,

No I don't think you made a mistake.

I picked up the page name
http://www.digitalartsphotography.com/wedpics/weddingphotoclarkstonwashington.htm
from your HTML code.

You have this table cell:
<td><a href="weddingphotoclarkstonwashington.htm" target="photo">
<img src="weddingphotoclarkstonwashington_thm.jpg" vspace="5" hspace="5"
width="125" height="83" border="0" alt=""></a></td>

If you change it to

<td><href="#"
onclick="window.top.location='weddingphotoclarkstonwashington.htm'">
<img src="weddingphotoclarkstonwashington_thm.jpg" vspace="5" hspace="5"
width="125" height="83" border="0" alt=""></a></td>

it should work.

This is very similar to the test that I made.

I think you will have to change each of the 42 links. The forwaed ad
backward linkages still seemed to work for me though (on your site)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top