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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Target HTML Frame

Status
Not open for further replies.

shu745

Programmer
May 14, 2001
79
US
Hi all, I was just wondering if it is possible to target a specific frame of an external website, assuming I know all the frame names of that external website.

For example, on WebsiteA I have a link to WebsiteB. WebsiteB is made of 3 frames (top_banner, left_navigation, main). Normally when WebsiteB is opened it is opened with it's default HTML file in the main frame. But with my link from WebsiteA I want to open WebsiteB with a specific page opened in it's main frame.

Is that possible? Again I know all the frame names for both sites.

Thx in adv.
- Shu
 
Nope, not possible. That is the problem with frames. Externally, you can only link default page or specific page from the frames (without the frameset).
 
well, even so...

it would be a security restriction if the websites were not on the same domain.

this question brought to you by the HTML and JavaScript forums, collectively.

*cLFlaVA
----------------------------
[tt]I already made like infinity of those at scout camp...[/tt]
beware of active imagination: [URL unfurl="true"]http://www.coryarthus.com/[/url]

[banghead]
 
You can't use the traget name of the framed remote page, but you can use the URL that the frame uses to display it's content.

That's not to say you can do what you are trying to do, but you can open a specific frame from a remote website in your frames, unless the othersite is using some type of remote referrer/deeplinking detection (like htaccess or a script) and automatically redirecting back to a main/default page.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top