This appears to be an age old problem. But I can't seem to find a solution to it.
I have a page with two iframes on it. They are loading as such:
<iframe id="leftIframe" src="predict_goalkeepers.php" height="900" width="300" frameBorder="0" hspace="0"></iframe>
<iframe id="rightIframe" src="predict_right.php" height="900" width="300" frameBorder="0" hspace="0"></iframe>
I then want to post something from the leftIframe to the right and refresh the leftIframe at the same time. This I have done through target frame and onclick function. On the leftIframe I have this:
<form action="predict_rightframe.php" method="post" name="form1" id="form1" target="rightIframe">
<input type="checkbox" name="goalkeepers" value="1" onclick="this.form.submit(); window.location.reload(true)">
This works fine and super duper on Chrome. But when checking on Firefox and IE, the frame is opened in a new window.
Is there anyway around this?
) But I want this frame to be visible.
Any help and I will be eternally grateful.