兄弟frame之间控制页面

<FRAMESET cols="250,*" frameborder="no" border="0" framespacing="0">

   <FRAME src="<%=request.getContextPath()%>/jsp/estiscore/card_tree.jsp?<%=param%>" name="treeLeft"/>

   <FRAME src="<%=request.getContextPath()%>/jsp/estiscore/estimateCard.jsp?<%=param%>" name="detailRight"/>

    </FRAMESET>

在card_tree.jsp里改变  detailRight 这个frame的页面内容,可通过如下方式:

self.parent.frames["detailRight"].location = "<%=request.getContextPath()%>/jsp/estiscore/estimateGroupManage.jsp?currId="+currId;

self.parent.frames["detailRight"].src是不可以的

猜你喜欢

转载自zengshaotao.iteye.com/blog/2298821