[thelist] check existence of a javascript function
MILLER David R.
dmiller at mcc.ca
Thu Jan 24 12:15:42 CST 2002
typeof(opener.getAppId)
should return "function" if getAppId is a defined function and "undefined"
if not. typeof is very useful for verifying the existence of any JS object.
---------------FROM-------------------
David R. Miller
Manager, Computer-Based Testing
Medical Council of Canada
dmiller at mcc.ca
(613) 521-6012
(613) 521-9722 (fax)
-----------------------------------------
Original message:
Message: 22
Date: Thu, 24 Jan 2002 11:09:40 -0500
From: Emily E Liang <Emily.Liang at morganstanley.com>
Subject: [thelist] check existence of a javascript function
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!!!
More information about the thelist
mailing list