Windows 10 will reach EOS (end of support) on October 14, 2025. For more information, see this article.

Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

Why won't my frames open within the same tab?

  • 5 replies
  • 3 have this problem
  • 35 views
  • Last reply by fivesixone

more options

I have a very simple site built around one frameset. When I navigate from the links on the main frame to the content, the content opens in a new tab.

Although I have read nearly every forum article about this I can not fix this problem. I certainly must be missing something here.

In any event, yes: The <body> tag is removed. It works in both Chrome and Safari.

I have a very simple site built around one frameset. When I navigate from the links on the main frame to the content, the content opens in a new tab. Although I have read nearly every forum article about this I can not fix this problem. I certainly must be missing something here. In any event, yes: The <body> tag is removed. It works in both Chrome and Safari.

Chosen solution

Try to use name instead of id (name="contentturd")

Read this answer in context 👍 0

All Replies (5)

more options

You have two ways to control how links open in a frame:

  • Set a default target using the base element. For example, the following would set all links to open in the same frame.
<html>
<head>
...
<base target="_self">
  • Set the target attribute for individual links. For example, the following would have the link open in the frame with id “gallery”
<a href="http://www.example.org" target="gallery">Go to example</a>

Targeting Links in HTML IFrames and Frames

more options

@Gingerbread_Man I attempted the base element but no luck. The target attributes are pointed to the content frame wich works correctly in other browsers.

Still stumped, although I imagine I'm missing something very simple.

Please ignore the silly temp names given to each page, I've been getting loopy between this fix and the baby.


sharksenesac.com/poooop.html


Thanks in advance for any help.

Modified by fivesixone

more options

Chosen Solution

Try to use name instead of id (name="contentturd")

more options

@cor-el

Brilliant! Thank you!