Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Open link in different frame in NS6

Status
Not open for further replies.

Desperados

IS-IT--Management
Feb 13, 2002
13
IT
hi,
i have a problem i have a home page with 2 frames &quot;top&quot; and &quot;content_frame&quot;, i want that links of the frame &quot;top&quot; will be opened in the second frame (&quot;content_frame&quot;), this happen in IE while NS 6 open a new page for links... i used the tag <BASE TARGET=&quot;content_frame&quot;> in the &quot;top&quot;
frame but it doesn't work... Why?
I also have tried to put for each link in the <A> tag the target=&quot;content_frame&quot; but doesn't work too...

tnx
 
I'm not sure, but I think I read somewhere that NS 6 doesn't support underscores in tag names. If getting rid of the underscore doesn't work, I don't know what will.
bluebrain.gif
blueuniment.gif
 
no... i changed frame name in &quot;contframe&quot;... but doesn't work... it's very unusual!
:(
 
Try this last one: Change the name of &quot;top&quot; to something like &quot;topFrame&quot;. this might be the cause of your problems, though I doubt it.
bluebrain.gif
blueuniment.gif
 
Have you tried using the DOM to reference the frame instead?

I think that 'top' is a reserved word for the top of the hierarchy of frames ('parent' is the wrapper of the current frame)

I suggest trying the javascript code
Code:
<a href=&quot;javascript:top.<frame_hierarchy>.location='<url>'&quot;>Click Here</a>

<frame_hierarchy> would be the DOM structure. If you are just using one frameset, this would be the name of the frame.

This is from memory, so apologies if it is miles out.

Si Fitz
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top