PDA

View Full Version : refrerence an iframe variable



gyuri
12-29-2004, 09:40 PM
1. How to refrerence an iframe variable from a parent script:

<html><head></head><body>
<iframe id="if1" src="snp.html"><script>
var xxx = [???iframe_variable???];
</script></body></html>

and iframe content (snp.html)
... <script> var iframe_variable = 'hello parent!'; </script> ...

2. How to check if iframe content loaded and variable available.

thanks if someone can help