Greetings, and thank you to Imar for helping me with the previous post,
I am still going out of my mind to get my DHTML to function properly in a Netscape browser.
I cannot get HTML to replace the text "Loading...(Appologies: Netscape users will wait a very long time, indeed.)", which I present here as a self-explanation for my frustration.
As a test for my browser, I wrote:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<body>
<div id="NavBarDiv">Old text.</div>
<script language="JavaScript" type="text/javascript">
document.getElementById('NavBarDiv').innerHTML="He llo.";
</script>
<p>In this case, "Hello." replaces "Old text."!</p>
</body>
</html>
Successfully, "Hello" replaces "Old text".
However, innerHTML does not execute in the following block:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<body>
<div ID="NavBarDiv" style="position: relative; left: 10px; top: 0 px;">
Loading...(Appologies: Netscape users will wait a very long time, indeed.)
</div>
<script language="JavaScript" type="text/javascript">
document.getElementByID('NavBarDiv').innerHTML = "Hello hello hello.";
</script>
</body>
</html>
Admittedly, I am using Netscape 7.1, and I should walk before running, but I am also having trouble downloading Netscape 6.2,... and shouldn't this work?
Thank you,
Daniel Hutchins
Woodbridge, CA
http://www.finehomemadesoap.com