Forum Moderators: open

Message Too Old, No Replies

undoing the 'base target'

         

mylungsarempty

10:56 pm on Jan 9, 2004 (gmt 0)

10+ Year Member



is there a way, if you have a base target set, so 'undo' the base target for one particular link?

Birdman

11:36 pm on Jan 9, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I would think just use absolute URL(http://www....) would bypass base. I could be wrong but I thought base was for relative URLs(/dir/page.htm).

mylungsarempty

11:44 pm on Jan 9, 2004 (gmt 0)

10+ Year Member



let's say this is contained in a document (right.htm) that is opened in an <IFRAME>. "left" is the name of the other <IFRAME>, both of which are within index.htm

<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.

tedster

3:42 am on Jan 13, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



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>