Yes. Functions are just properties of objects, like any other, so you can treat them as such. The conditional value you provided above will return true if this function (or any member window.opener
is called MyFunctionBlah
) is defined and is not zero.
a source
to share