jwhittlestone
Programmer
Hi there,
I'm having a bit of difficulty with a function that will open a link
depending on the calling frameset.
The function (promoLink()) is located in a frame
(trinity.getminted.com) and depending on the frameset
( or I wish to
open the link and respectively.
I am having trouble testing the properties of the frameset, I have
tried the following and javaScript does not seem to recognise them as a
string.
function promoLink()
{
if (parent.topFrame.location.href = ...
if (top.location.href=..
if (window.top.document.location.href=..
if (window.frames['topFrame'].location.href = ...
}
I'd appreciate any pointers! Thanks in advance for looking.
Jon
I'm having a bit of difficulty with a function that will open a link
depending on the calling frameset.
The function (promoLink()) is located in a frame
(trinity.getminted.com) and depending on the frameset
( or I wish to
open the link and respectively.
I am having trouble testing the properties of the frameset, I have
tried the following and javaScript does not seem to recognise them as a
string.
function promoLink()
{
if (parent.topFrame.location.href = ...
if (top.location.href=..
if (window.top.document.location.href=..
if (window.frames['topFrame'].location.href = ...
}
I'd appreciate any pointers! Thanks in advance for looking.
Jon