JS判断父窗体中的函数是否存在

function returnopen(retbutton,retnamebutton,retvalue,retnamevalue)
        
{
                window.opener.document.all(retbutton,
0).value=retvalue;
                window.opener.document.all(retnamebutton,
0).value=retnamevalue;
                window.opener.document.all(retnamebutton,
0).focus();
                window.close();
                
                
if (typeof(window.opener.ReRender)!="undefined"){
                    window.opener.ReRender();
                }
    //添加者:Herist;用以回调刷新select控件                
        }

posted on 2007-09-28 09:12  Herist  阅读(5489)  评论(1编辑  收藏  举报

导航