If you know what an iframe is then read on, if not then there is no point but you have the right to read on so whatever!
Basicly imagine this:
Main.html has 2 iframes, lets say iframe1 and iframe2.
Now the source of iframe1 is iframe1Source.html, and In this I have a div with the id haywire. Now when I click this div I want a javascript function from iframe1Source.html to change the source of the iframe2 frame, How is this possible?
Haywire
ID:182200
Oct 25 2008, 10:50 am
|
|
Oct 25 2008, 11:41 am
|
|
parent.iframe_name.function() should do it. Although you may need to load the javascript into the parent page to be able to access any of the functions.
|
In response to Nadrew
|
|
Well thanks, but I used a different approach:
<script type="text/javascript"> Haywire |