1,在页面直接弹窗时如何关闭弹窗?
答:可以在弹窗页面通过调用window.parent.父类页面方法()
var dc;
function inResearch(tb_name,tb_id,answer_all){
dc = top.dialog({
url:"<%=basePath%>en/cst_learner2/jsp/ila_pgs_detail.jsp?tb_id="+tb_id+"&answer_all="+answer_all,
title: '问卷详细页面--'+tb_name,
width: 1100,
height: 640
}).showModal();
<%-- layer.open({
type: 2,
title: '问卷详细页面--'+tb_name,
shadeClose: true,
shade: 0.8,
area: ['1100px', '640px'],
content: "<%=basePath%>en/cst_learner2/jsp/ila_pgs_detail.jsp?tb_id="+tb_id+"&answer_all="+answer_all
}); --%>
}
function 父类页面方法(){
dc.close();
}
2,在父弹窗上弹窗如何关闭子弹窗?
答:有两层弹窗时再子弹窗通过子弹窗调用window.parent.父类页面方法()是无法调用到父类方法(IE下测试不可用)
此时只有通过在子弹窗调用:
var dialog = top.dialog.get(window);
dialog.close();
这样就可以关闭父窗口了
其他功能基本可以根据api解决