From: Jon – view profile
Date: Wed, Apr 19 2006 3:40 pm
Email: “Jon” <jon.whittlest…
Groups: alt.comp.lang.javascript
Not yet rated
Rating:
show options
Reply | Reply to Author | Forward | Print | Individual Message | Show original | Remove | Report Abuse | Find messages by this author
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
([url]www.instanwinmirror.com[url]www.sundaymailinstantwin.com
open the link [url]www.instantwincasino.com[url]www.sundaymailcasino.com
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=..
}
I’d appreciate any pointers! Thanks in advance for looking.
Jon