Forum Moderators: open
The iframe contains a html file (random.html) which includes a script that displays a random image. For the sake of time and simplicity, I want the radom.html file to refresh when the user clicks on any of the navigation to show a different image. However, this is proving more difficult than I expected.
The navigation snippet below contains a rollover image (I would have used CSS, but we're past that point right now). I tried placing the javascript to refresh the iframe within the href tag, however I have had unsuccessul results. The iframe name and id tags are both named 'boatFrame.'
Can anyone help me out? I believe the soltion is simple, however I am having a hard time finding articles
<a href="javascript:frames['boatFrame'].location.href=random.html" target="boat" onclick="return cngFrm('what/what_subnav.html', 'what/what.html')" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('What','','images/what_roll.gif',1)"><img src="images/what.gif" alt="What We Do" name="What" width="100" height="25" border="0" id="What" /></a>