
Why won't my frames open within the same tab?
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 👍 0All Replies (5)
URL ??
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>
@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.
Thanks in advance for any help.
Modified
Chosen Solution
Try to use name instead of id (name="contentturd")
@cor-el
Brilliant! Thank you!