a target=_top in iframes

O

ojorus

Hi;
I'm having a problem with some links on my website. It just won't work in
Internet Exporer 6! Since quite a lot out there still using IE6, I would
like to fix the problem.

My two HTML-documets are something like this:

index.html:
<iframe src="mypage.php" width="100%" height="100%" frameborder="0"
marginheight="0" marginwidth="0" scrolling="yes" name="main"></iframe>

mypage.php:
<a href=http://www.somelink.com target="_top">My link</a>

When you click the link in IE 6, absolutely nothing happens! The problem is
the target-parameter. If i change it to "_blank" or "_self", the link works,
but I want it to go on top, but that does not happen. target="_parent" does
not work either.

I found another website with the exactly same problem:
http://www.filmweb.no/oslokino/kinoprogram/. If you click on "vis
forestillinger" or "omtale" in IE6, nothing happens.
It works perfectly in other browsers (firefox, opera, and also IE7), but not
in IE6.

Does anyone having a solution/explaination to this stupid thing?

regards
ojorus
 
J

John Hosking

ojorus said:
Hi;
I'm having a problem with some links on my website.

My two HTML-documets are something like this:

But only something *like* it. Can you provide a URL to the *real* code?
index.html:
<iframe src="mypage.php" width="100%" height="100%" frameborder="0"
marginheight="0" marginwidth="0" scrolling="yes" name="main"></iframe>

mypage.php:
<a href=http://www.example.com target="_top">My link</a>

What happens when you add quotation marks around the URL?
said:
I found another website with the exactly same problem:
http://www.filmweb.no/oslokino/kinoprogram/. If you click on "vis
forestillinger" or "omtale" in IE6, nothing happens.
It works perfectly in other browsers (firefox, opera, and also IE7), but not
in IE6.

Well, the link you provided works in IE6 for me, and you didn't provide
a link to your page, so if the problem isn't the quotes then I don't
know how I can help you.
 
O

ojorus

John Hosking said:
But only something *like* it. Can you provide a URL to the *real* code?
Sorry, it is not available at the moment.
What happens when you add quotation marks around the URL?
<a href="http://www.example.com" target="_top">My link</a>
No difference.

Well, the link you provided works in IE6 for me, and you didn't provide a
link to your page, so if the problem isn't the quotes then I don't know
how I can help you.

Just to be sure: it actually works OK for you on this link when you click
"vis forestillinger" or "omtale"..? (all other links on that page works
well) What version of IE6 do you use?
Mine says Version 6.0.2900.2180.xpsp_sp2_gdr.070227-2254
 
J

Jonathan N. Little

ojorus said:
Sorry, it is not available at the moment.

What is it in the bathroom or something?

If you want others to have any hope of assisting you you need to make it
available online so we may see the page in action...
 
O

ojorus

Jonathan N. Little said:
What is it in the bathroom or something?

The webpage is not reliesed yet, and can't be put online (agreement).
However, the same error comes up in this page:
http://www.filmweb.no/oslokino/kinoprogram/, so there you can study the
code.
However, I have testet the code on several machines using IE6, and there the
page works well. So it seems to be a problem on IE6 on my local machine.
Maybe it has something to do with that I installed IE7, sand then removed it
again and went back to IE6.
Anyway, it seems to be a local problam at my machine, since no one else
reported this error. So I guess this is not a big problem.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,228
Members
46,818
Latest member
SapanaCarpetStudio

Latest Threads

Top