Forum Moderators: open
<body>
...
<iframe id="test" src="http://www.domain-2.tld/page-B.html" width="100" height="100"></iframe>
...
</body>
www.domain-2.tld/page-B.html
<body>
...
<script type="text/javascript"><!--
var fam=parent.document.getElementById('test');
fam.width=600;
fam.height=600;
//--></script>
</body>
It does not work because Page-B is unable to access parent.document which is under another domain. So my question is, how to modify the weight/height and src of iframe inside page B?
[edited by: rogerd at 9:16 pm (utc) on Oct. 5, 2005]
[edit reason] fix format [/edit]