SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Addict
    Join Date
    Sep 2000
    Posts
    230
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Netscape Layer Writing (layer within layer)??

    Layer writing in Netscape..
    This is pretty straightforward >>
    However I'm trying to write to a <div> layer within a <div> layer.

    My div:

    Code:
    <div id="blah">
    <div id="aight">
    </div>
    </div>
    I'm trying to write to "aight"

    How should my code look?
    Code:
    document.layers["blah"]["aight"].document.open()
    etc....

  2. #2
    SitePoint Addict
    Join Date
    Sep 2000
    Posts
    230
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    anyone?

    i'm trying to reference a layer within a layer through javscript ????

  3. #3
    SitePoint Enthusiast
    Join Date
    Jan 2002
    Posts
    48
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    1 or both of these should work,

    document.layers["blah"].document.layers["aight"].document.open()

    or

    document["blah"].document["aight"].document.open()

    GL

  4. #4
    SitePoint Addict
    Join Date
    Sep 2000
    Posts
    230
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    cheers, got it working


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •