The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Frames: target attribute, hyperlinks won't open in target frame
trip7cap
post Jun 20 2012, 11:14 PM
Post #1





Group: Members
Posts: 2
Joined: 20-June 12
Member No.: 17,300



I have a webpage (frametest.htm) that has three frames, A, B, and C.

I have a few test links in Frame A (which acts as my navigation bar).
When I click on a link, it opens a webpage (CNN.com as a test) in frame B.

At this point I tried to have any link clicked on the CNN page open as a new page in frame C using <Frame name="FrameB" target="FrameC"> in the main frametest.htm source code.

No matter what the CNN links always open up in frame B, the frame that has the CNN page loaded.
I tried using the _parent / _top / _blank attributes in the <Frame code and nothing worked.

Here's a picture in case this is confusing to read.

Can anyone tell me what I'm doing wrong?

IPB Image

This post has been edited by trip7cap: Jun 20 2012, 11:14 PM
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Darin McGrew
post Jun 21 2012, 10:18 AM
Post #2


WDG Member
********

Group: Root Admin
Posts: 8,365
Joined: 4-August 06
From: Mountain View, CA
Member No.: 3



You can't control the target of framed sites.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
trip7cap
post Jun 21 2012, 10:46 AM
Post #3





Group: Members
Posts: 2
Joined: 20-June 12
Member No.: 17,300



Thanks for the reply Darin.
Is there no way to do it then even with java?
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Christian J
post Jun 21 2012, 05:10 PM
Post #4


.
********

Group: WDG Moderators
Posts: 9,656
Joined: 10-August 06
Member No.: 7



In javascript such cross-frame scripting is disabled for security reasons (unless all the pages are hosted on the same domain).
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 25th April 2024 - 03:07 AM