iframe的使用~

1.某个按钮的点击:currentF(123);

2.function currentF(guid){
  var url = "<%=request.getContextPath()%>/aaaa/bbbb_ccc.html?guid="+guid; //此地址即为想展示的页面进入action
  window.frames["property_con"].location.href = url;
}

3.在想显示的区域布置上iframe

<iframe name="property_con"  allowTransparency="true" src="#" width="100%" height="800px" frameborder="0" marginwidth="0" marginheight="0" ></iframe>

原文地址:https://www.cnblogs.com/jiangbotao233/p/7766693.html