Menu
I’m trying to figure out why this code isn’t working. I’m using an iframe and I have this code in the src file for that iframe.
[code=html]
if (parent.location == “http://domain.com/store.html”){
document.write(“********************************”);
}
What really is throwing me off is that if I put in a redirect statement like:
[code=html]
parent.location = “http://domain.com”;
That works fine.
I’ve tried self.parent.location, I’ve tried parent.window.location, I’ve tried parent.location.href, none of it works.