Problem with Navigator and DIV object 
Author Message
 Problem with Navigator and DIV object

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



Fri, 13 Sep 2002 03:00:00 GMT  
 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




Fri, 13 Sep 2002 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Netscape 6 problem when trying to make visible/hidden complex DIV objects

2. Navigator object in JScript?

3. Navigator.plugin object with IE 4.0

4. use navigator object

5. navigator object

6. Problems setting attributes of a Navigator Window ...

7. innerHTML or write() for a DIV object

8. refencing the document that contains a Div object

9. How do I create a div object?

10. minimize div problem

11. animating a DIV block problem

12. DIV visibility problem

 

 
Powered by phpBB® Forum Software