This seems to be an old problem. But I can not find a solution.
I have a page with two iframes. They load 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>
Then I want to publish something from leftIframe to the right and update leftIframe at the same time. I did this using the target frame and the onclick function. On the left side of the window there is the following:
<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 is super duper in Chrome. But when checking on Firefox and IE, the frame opens in a new window.
Anyway?
I believe that there is a “hack” thanks to which you can get javascript to create a frame. But only the advice I found is to create a hidden frame ( see here ) But I want this frame to be visible.
Any help on this issue would be extremely helpful - even if it just adapts the above javascript code to create a visible iframe.
source share