Forum Moderators: open
<HEAD>
<BASE target="left">
</HEAD>
<BODY>
//this will open in the other iframe (left)
<A HREF="asdf.htm">open in the left</A>
//i want this to open in the same frame (right)
<A HREF="qwerty">open right here</A>
</BODY>
i know, it seems rather senseless to search for a solution instead of simply defining the targets in the anchors themselves, but i have my reasons.
So does anyone know how i can do this? I tried simply target="right" within the anchor tag, but to no avail.
I tried simply target="right" within the anchor tag, but to no avail.
A local target attribute is supposed to be the solution to override a base target attribute. Have you double checked everything involved for typos and other errors?
<added>
I was just reading at the W3C and realized that <base> has a REQUIRED attribute of href. Perhaps the links will behave better if you include that along with the target attribute, although I don't really hold out a lot of hope for this angle. It does, however, make for valid code.
See 12.4 on this page:
[w3.org...]
</added>