index.htm
<body onload="t1.value=''">
<script>
function a()
{
s1.aa();
}
</script>
<iframe id=s1 src="a.htm"></iframe>
<input type=button onclick="a();" value="call iframe's method">
</body>a.htm
<body>
<script>function aa()
{
alert('ok');
}
</script>
iframe
</body>
<body onload="t1.value=''">
<script>
function a()
{
s1.aa();
}
</script>
<iframe id=s1 src="a.htm"></iframe>
<input type=button onclick="a();" value="call iframe's method">
</body>a.htm
<body>
<script>function aa()
{
alert('ok');
}
</script>
iframe
</body>
页面b:
<iframe id="iframe1" name="ddd" style="WIDTH: 362px; HEIGHT: 271px" src="http://www.inhe.net"></iframe>ddd.b()