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

Reverse of Escaping Frames?

Status
Not open for further replies.

ckennerdale

Programmer
Dec 23, 2000
158
GB
I have a frameset with two frames. In the botton frame is a discussion board script I have installed that sends an email to the user when someone replies to a question.

What I need is some kind of sniffer detects if the user is referencing the bottom frame from within the frame set or not, if not to then reload the page with the full frameset. This way the user never only sees the bottom frame.

I'm about to tray having a script on the head of the bottom frame that is something like

if self=parent.frames[1] do nothing
else open fullfarmeset url

Caspar Kennerdale
Senior Media Developer
 
Hi,

I don't know if I really understand your problem but why don't you try to count the number of frames ?? :

if (parent.frames.length < 1)
{
document.location.href = 'http:/ }

Hope that it will help you
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top