expose some method from your top.htm, for examplehost.html:
<html>
<body>
<script language=JScript>
function MyObject()
{
this.Test = Test;
}
function Test() {
alert("Test");
}
public_description = new MyObject();
</script>
</body>
</html>testhost.html:
<object id="obj" data="host.html" style="display:none"
type="text/x-scriptlet">
</object>
<input type="button" value="click me" onclick="obj.Test()">
<html>
<body>
<script language=JScript>
function MyObject()
{
this.Test = Test;
}
function Test() {
alert("Test");
}
public_description = new MyObject();
</script>
</body>
</html>testhost.html:
<object id="obj" data="host.html" style="display:none"
type="text/x-scriptlet">
</object>
<input type="button" value="click me" onclick="obj.Test()">
host.html:
<object id="obj" data="test.htm" style="display:none"
type="text/x-scriptlet" VIEWASTEXT>
</object>
<input type="button" value="click me" onclick="obj.Test()" ID="Button1" NAME="Button1">test.htm:
<script language=JScript>
function MyObject()
{
this.Test = Test;
}
function Test() {
alert(666);
document.all.eddy.innerHTML = 'eddy';
}
public_description = new MyObject();
</script>
<span id="eddy" onClick="Test()">abc</span>