Subj : Why JS_CompileScript Error? To : netscape.public.mozilla.jseng From : jijun.zhang Date : Fri Aug 26 2005 05:38 am when i use js library compile a script, the follow error occur script100:1: SyntaxError: missing ( before formal parameters: script100:1: function window.document() { window.document.abc = 1; } script100:1: ...............^ can anybody help me? i think maybe i havn't define the class window in context, but when i try to replace the "window.document" with "math.sqrt", which object is defined as internal, the error is similar. .