08-25-2010, 03:07 PM
08-25-2010, 07:20 PM
*IF* the two HTML files come from the same domain, the answer is "yes".
From JS in the <iframe>, you can refer to the main page using "parent.".
So something like
parent.document.getElementById("image37").src = "foo.jpg";
will work fine.
You might find it better to supply functions in the main page to do the manipulations and then just invoke the functions from the iframe's code. Again, just by parent.callSomeFunction(x,y,13); or whatever is needed.
08-25-2010, 07:21 PM
Should have said: If the two pages come from different domains, then *NO* cross-domain scripting is possible. Period.