I have an embedded html page loaded via the object tag on my main page. I'm working in XHTML strict so using iFrame is out. I call the embedded page using this:
[HTML]<object data="mypage.html" type="text/html"></object>[/HTML]
Now the referenced page loads just fine in the browsers I am testing with (IE 6&7/FF/ Safari). My problem is I have a simpe link on the embedded page that when clicked should change the main page to whatever URL the link points to. I've done this in the past with iframes using [HTML]<a onclick="window.top.location='anotherpage.html';"> Go Here</a>[/HTML] so I thought this might work using OBJECT like it does using iframe.
Well it doesn't work entirely. It works just fine in firefox, but stupid IE only loads the new URL within the object element its self, not the whole window like i want. I've tried using window.parent, window.self, so forth and so on but no luck. Any advice? It would also be cool if there was a way to call a function declared in the main page from the embedded page. I haven't found a way to do that either...
Thanks in advance!
~Brian