
May 27th, 2004, 03:12 PM
|
|
Registered User
|
|
Join Date: May 2004
Posts: 1
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
changing source data of an <object>
I'm using XHTML, strict DTD
this code is in my page:
Code:
<object width="751" height="372" name="main" data="main.htm"></object>
Can I change the data of this object via JavaScript? For example by clicking on a link?
At the moment "main.htm" is shown in the object. I would like to show "page1.htm" in the object by clicking on a link in the page.
When I am in the object, I can manage this with window.document.location, but when I'm working OUTSIDE the object I'm kinda stuck...
I would appreciate any help.
Please do not propose to use an iframe, because I have to use the <object>.
Thanks for any help in advance!
|