"object required" in VBScript
Posted on 2004-04-07
First off, I'm new to this, so my apologies if the question is stupid. I'm writing some simple VBScript to reference various attributes of the "document" object for an HTML page. Sometimes (not always), when I do something like document.getelementbyid("name").whatever, it gives me a Microsoft scripting error telling me that the object is required. I've tried declaring a variable and pointing it to the document."name" (without the quotes) object and then referencing the properties and/or methods, and same thing. It's almost as if the DOM is not being recognized. Is my environment set up wrong?