Frames: target attribute, hyperlinks won't open in target frame |
Frames: target attribute, hyperlinks won't open in target frame |
trip7cap |
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? This post has been edited by trip7cap: Jun 20 2012, 11:14 PM |
Darin McGrew |
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.
|
trip7cap |
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? |
Christian J |
Jun 21 2012, 05:10 PM
Post
#4
|
. Group: WDG Moderators Posts: 9,661 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).
|
Lo-Fi Version | Time is now: 27th April 2024 - 12:19 AM |