|
-
Sep 6th, 2004, 09:07 AM
#1
Thread Starter
Lively Member
Test if Object Property Exists
I am working on a program that investigates the DOM object, mostly as a learning process for myself.
My program displays characteristics of an element that it finds, but in the DOM, the attributes ie 'Name' are not consistent for all types of elements (Tags).
Is there a test to check for the presence of a given property, method etc that I can make beforehand to avoid generating errors when I try to retrieve the data in a generalized routine?
It seems there would be a method that would apply to objects in general.
Thanks in advance.
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
|