je*****@gmail.com said on 26/04/2006 12:08 PM AEST:
If I have in index.htm;
<script>
x=1;
var x = 1;
</script>
How would I 'set' that variable to 10 from within a IFRAME on this page?
parent.x = 10;
You may want to test that parent and parent.x exist first, otherwise the
script will error if run outside the iframe.
if (parent && 'undefined' != typeof parent.x){
parent.x = 10;
}
// otherwise deal with not having a parent...
--
Rob
Group FAQ: <URL:http://www.jibbering.com/FAQ>