Web Hosting Talk







View Full Version : Weird DHTML Error


Falco1199
04-28-2003, 10:07 PM
Here's my :small: code:

MainSect = document.getElementById("main");
MainSect.innerHTML = makeMain();

makeMain() returns a string full of HTML. However, this gives me an error: "'MainSect' is null or not an object". What could be causing this?

Toolz
04-29-2003, 06:22 PM
Where in the page is this being called?