子iframe调用父iframe的某个方法
window.parent.test('股东');
父iframe的方法
function test(val){
var $li_1 = $("<li>"+val+"</li>");
$("#place-ul li:last-child").replaceWith($li_1);//替换节点值
}
退出顶级框架:
HttpServletResponse response= ServletActionContext.getResponse();
response.setCharacterEncoding("UTF-8");
response.setContentType("text/html; charset=utf-8");
PrintWriter out= response.getWriter();
out.write("<script language=javascript>alert('登陆超时,请重新登陆!!')</script>");
out.write("<script language=javascript>window.top.location='business/index.jsp';</script>");
top :顶级的意思 (不管嵌套多少个都能退)
parent:只一个父亲