Subj : Checking JSObject class type To : netscape.public.mozilla.jseng From : Brian Genisio Date : Mon Jan 26 2004 09:31 am Hi all, What is the best way to tell what class a JSObject is? This is the best way I have figured out, but it seemes there must be a quicker way... strcmp(JS_GetClass(new_obj)->name, classSpec.name) where new_obj is the object I want to check, and classSpec is the JSClass structure I used to initialize the class in the first place. This method works, and I am happy with it, but is there a better way? Thanks, Brian .