I have two iframes and I need to load another local page (help_content.html) (into my bottomframe) on the click of a button (in my topframe). The topframe has a form (help_form.html) with 3 buttons (2 which work) and the bottomframe is currently a blank.html that needs to load help_screen.html on the click of the button.
HTML from help_screen.html
<iframe name="topframe" id="topframe" src="help_form.html"><p>Your browser cannot view iFrames</p></iframe>
<br/>
<iframe name="bottomframe" id="bottomframe" src="blank.html"><p>Your browser cannot view iFrames</p></iframe>
Javascript
function openHelp() {
document.getElementById("bottomframe").src="help_screen.html";
}
HTML from button on help_form.html
<input type="button" name="help1" value="Click for help" onclick="openHelp()" />