- 我有一个带有iframe的jsp页面。
例如:worklist.jsp使用javascript重新加载iframe
<html>
<head>
<body>
<iframe height="15%" marginheight="0px" marginwidth="0px" scrolling="no" src="menuBanner.jsp" style="border:0; padding: 0px; position:absolute;" width="960px">
</iframe>
<div><button data-dojo-type="dijit.form.Button" value="Reload" id="reload" onclick="reload();">Reload</button></div>
</body></head></html>
- 上的一个按钮的点击,我需要重新加载只IFRAME页。
- 我尝试了下面的脚本,但它刷新整个页面(worklist.jsp)
函数重载(){ location.reload(); }
检查:[http://stackoverflow.com/questions/86428/whats-the-best-way-to-reload-an- iframe的使用JavaScript的] [1] [1]:http://stackoverflow.com/questions/86428/whats-the-best-way-to-reload-an-iframe-using-javascript – 2013-02-28 09:30:57
这完全与JSP无关。 – NSPKUWCExi2pr8wVoGNk 2013-03-01 14:46:20