[thelist] Friday Laugh

Paul Bennett Paul.Bennett at wcc.govt.nz
Thu Mar 22 19:22:18 CDT 2007

Here's what I got:


<tip type="JavaScript">
If you need to check if a function exists before you call it, you can use something like this:

if(typeof window.myFunction == 'function') {
	// function exists, so we can now call it
	myFunction('foo', 'bar');

More information about the thelist mailing list