Log in

View Full Version : Incompatibility Issues with Targeting Links



Curvalicious
07-08-2005, 12:27 AM
Hi All,

I'm hoping that someone can help me out. I'm trying to set up a website that uses an inline frame for the main content page. With the links menu I have it set with the existing code:
<a target="_content" href="pagename.htm">
I have also tried:
<a href="javascript:parent._content.location=pagename.htm">
The problem I am encountering is that with both types of link, they work fine in IE and Netscape, but I can't seem to make them work in Mozilla or Firefox.

Does anyone know of a way that I can make the targetting links work in all browsers?

I had thought that maybe the problem was an incompatibility between the javascript code and my navigation menu which is a java based switch menu, however, this wouldn't explain why it wouldn't work for the standard link format.

Any assistance anyone could supply would be *extremely* appreciated!!!

;)

mwinter
07-08-2005, 12:47 AM
With the links menu I have it set with the existing code:
<a target="_content" href="pagename.htm">The only cause I can think of off the top of my head is that frame target names cannot begin with an underscore - they must start with a letter. Leading underscores are reserved for special values like _blank and _parent. Mozilla tends to be less forgiving than most browsers, so it might be rejecting the links on those grounds.

I would actually experiment on your behalf, but it's very late (1:45am) here, so it'll have to wait until either later this morning or the evening. If that isn't the solution, someone else may jump in before then.

Good luck,
Mike

Curvalicious
07-08-2005, 12:59 AM
Excellent!!

That's solved it! Thanks for your assistance Mike and I hope you have a good nights sleep!

xo

Curvy