|
-
Apr 24th, 2002, 07:02 AM
#1
Thread Starter
Fanatic Member
How can I check if an object exists?
I have a linked js file which I use in several pages, some of these contain a ListBox Called lstNav, Others don't. If I reference lstNav in the pages where it doesn't exist I obviously get an error.
I have tried Checking if (lstNav == null) but get a "lstNav is undefined" error,
Does anyone know a way to do this?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|