Web Analytics Made Easy -
StatCounter nested div tags javascript problem - CodingForum

Announcement

Collapse
No announcement yet.

nested div tags javascript problem

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • nested div tags javascript problem

    hi I have a problem with nested div tags, folling is the code.

    Code:
    <html>
    <head>
    <script>
    function open()
    {
     document.getElementById('middle').innerHTML='<object type="text/html"  data="jsp/client/administration.htm" width="600" height="500"></object>';
    
    }
    </script>
    </head>
    <body>
    <div id='top'><a href="#" onClick="openHtml()">open</a></div>
    <div id='middle'></div>
    <div id='foot'></div>
    </body></html>
    now the problem is i am opening a html file in middle div tag using object reference in java script.
    But inside administration.html i have another link which change the content of div with foot id.
    And i gets element 'foot' is undefined. It seems like the page in inner div tag cannot access the other elements in parent page.
    Please help me out.
    thanks in advance.
Working...
X