Subj : problems on new option To : netscape.public.mozilla.jseng From : "lyg" Date : Fri Feb 06 2004 02:03 pm I implement "new Option" with the following two functions; static JSBool Option(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval *rval); JSObject * JS_InitOptionClass(JSContext *cx, JSObject *obj); but i have a problem. when meeting document.form1.select1.options[i] = new Option(text, value, defaultSelected, selected), i have to create a browser option node according with created js option object. but how can i know document.form1.select1.options[i] is being evaluted? .