[thelist] check existence of a javascript function

Emily E Liang Emily.Liang at morganstanley.com
Thu Jan 24 10:08:15 CST 2002


Hi,

I'm trying to figure out how to check the existence of a javascript
function in the opener window.  I tried all of the following and none
seemed to work.  All returned a javascript error of "opener.getAppId()
is not a function" error when the junction does not exist.  Any help is
greatly appreciated!!!

1) if (opener.getAppId() == undefined) {
        //do something else
    } else {
        appId = opener.getAppId();
    }


2) if (!opener.getAppId) {
        //do something else
    } else {
        appId = opener.getAppId();
    }

3) if (opener.getAppId() == null) {
        //do something else
    } else {
        appId = opener.getAppId();
    }

Thanks,

Emily





More information about the thelist mailing list