
Problem with Navigator and DIV object
<DIV ID="objDIV" style="position:relative">
Sample Text
</DIV>
if (document.all) {
objDIV.innerHTML = 'The DIV has been updated.';
Quote:
} else {
with (document.layers['objDIV'].document) {
open();
write('The DIV has been updated.');
close();
}
Quote:
}
=-=-=
Steve
-=-=-
Quote:
> Under IE, I can have the following HTML block:
> <DIV ID="objDIV">
> Sample Text
> </DIV>
> and use the following JavaScript code to update its
> contents:
> objDIV.innerHTML = 'The DIV has been updated.';
> Unfortunately, it's not working under Netscape Navigator
> (I'm using ver 4.5). Does anyone have any suggestions?
> Thanks in advance,
> Richard L Rosenheim