dave said the following on 8/8/2007 3:51 PM:
> On Aug 8, 11:14 am, "Jon Paal [MSMD]" <Jon nospam Paal @ everywhere
> dot com> wrote:
>> I get common error "document.getElementById("grid") has no properties"
>>
>> what's missing here ?
>>
>> <script language="javascript">
>> document.getElementById('grid').innerHTML = "xxx";
>> </script>
>>
>> <div id="grid">div>
>
> validate that piece of HTML and you'll see the problem
>
Actually, he won't. Browsers will error correct it and close the div
element. The problem is trying to access an element before it exists in
the DOM. Closing the div tag and testing it will confirm it.
--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ -
http://jibbering.com/faq/index.html
Javascript Best Practices -
http://www.JavascriptToolbox.com/bestpractices/