Frame target does not always work?

  • Thread starter Thread starter ShaggyMoose
  • Start date Start date
S

ShaggyMoose

I have a page with three IFRAME tags, in the classic "menu, banner,
content" layout. I use the TARGET attribute of HREF from the menu
links to load pages in the content frame. Generally, this works fine,
but now and again it just seems to break and starts opening a new
window for every link. The links are all static and I can't seem to
nail down the cause. Refreshing the frameset causes the links to
function correctly again. Any suggestions (apart from "don't use
frames")? Thanks.
 
Hi Shaggy,

The target tag has a default value of "_blank" so if you don't specifically
specify a value you may find that some of your links in the frames will use
the default.

Ensure all your links specify a target value. eg. <a href="home.htm"
target="content">Home</a>

Also ensure that none of your pages do not have the base tag , target
attribute set to _blank. ie. <base target="_blank">, but if you do the above
this should ensure that your navigation links will open in the frames
specified in your target values.

Regards.
 
Thanks for the response Rob. I had already tried setting "base target"
on its own, "target" for each link on its own and both combined.
Initially, they all work, however the problem still persists and the
symptoms remain the same.
 
Back
Top