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?
