Log in

View Full Version : target="_top" doesn't work from inside a document included with an OBJECT tag



Kollision
08-10-2005, 12:15 AM
Hi, people.

I'm trying to develop this new lay-out for my personal website, and I'm having problems with targeting links in an included document using the OBJECT tag ----- only in IE, it works fine in FF and NN.

Here's the call for the external document which contains the links:
<object id="links" data="rightDiv.htm" type="text/html" style="height: 353px; width: 100%; border: 0; overflow: visible"></object>

A regular link like the one below....
<a href="movies/mov_files/index.htm" target="_top">Ratos</a>
does not cause the new page to open in the topmost window, opening it in the OBJECT area instead.

Shouldn't this behave just as if I were using an IFRAME tag?
Or is there something I'm missing here?

You can check the complete code at http://kollision.vilabol.uol.com.br/noframes/index.htm (the OBJECT embedded document is the right Links area). Both pages are standards-compliant.

Thanks.

lmf33
08-20-2005, 03:37 PM
If you mean you want it to open in a new window change

target="_top"

to

target="_blank"

darco9x2
08-20-2005, 04:11 PM
maybe he means click here to return to the top of the page. you have to name something there like a div, i dont remember and then link to it.