内嵌页面iframe传参f

父页面镶嵌页面,并把参数传递到嵌入的子页面scrolling是滚动条:auto是自动;no和yes。

<iframe id="result" name="result" align="center" 

src="<%=contextPath%>/fmis/er/billapprove/processInst.jsp" 

height="188px" 

width="689.6px" 

scrolling="auto">

</iframe>


JS:
var processInstId="<%=request.getParameter("processInstId")%>";
//初始化
    window.onload=function(){ 
    var ifr = document.all("result");
    window.result.location.href=ifr.src +"?processInstId="+processInstId;
    }   

猜你喜欢

转载自blog.csdn.net/sinat_25378929/article/details/55520723