在FF3.x中使用iframe重新加载页面

时间:2012-05-09 09:28:01

标签: javascript html firefox

我有一个包含iframe的jsp文件。

<html>
<body>
<iframe name="appcontentframe" id="appcontentframe" src="something.jsp" frameborder="0"
                  style="position:absolute; top:0px; bottom:0px; border:0px;">
<button name="tst" onclick="parent.location.reload();" > Test</button>
</iframe>
</body>
</html>

现在在javascript中我动态更改iframe的src,让我们说other.jsp。在iframe页面中,我有一个按钮

<button name="tst" onclick="parent.location.reload();" > Test</button>

重新加载整页。当我单击此按钮时,在所有其他浏览器中,iframe包含硬编码为“something.jsp”的src,但在FF 3.x系列中,它加载“other.jsp”。 但是当我按下浏览器刷新时,它会加载“something.jsp”。 我的要求是,它应该在点击“测试”按钮时加载somthing.jsp。

0 个答案:

没有答案