子页面关闭时触发父页面的事件

下面的代码在winForm客户端中存在兼容性问题:
window.opener.document.getElementById('btnSearch').click();
需要改成下面的代码:
window.external.MethodScript('/browsercontrol/closepagecallparentpagefun?parentpagecontrolid=btnSearch');

  

下面的代码在winForm客户端中存在兼容性问题:

;window.opener.document.getElementById('btnSearch').click();

需要改成下面的代码:

window.external.MethodScript('/browsercontrol/closepagecallparentpagefun?parentpagecontrolid=btnSearch');

posted @ 2015-11-26 18:48  stevejson  阅读(543)  评论(0编辑  收藏  举报