Results 1 to 3 of 3

Thread: HELP !! Netscape Nightmare!!

  1. #1

    Thread Starter
    Lively Member benski's Avatar
    Join Date
    Sep 1999
    Location
    UK
    Posts
    126

    Arrow

    I need to refer to a layer in another frame in my frameset in order to write to that layer.

    For instance- if the layer was in my current document, I would simply say:

    Code:
    document.layers["myLayer"].document.open()
    document.layers["myLayer"].document.write("some text")
    document.layers["myLayer"].document.close()
    I can refer to the frame that I want with:

    Code:
    top.frames.FrameName
    But I cannot seem to access the properties of the frame to put these two segments together.

    ANY help very gratefully received!

  2. #2
    Frenzied Member sebs's Avatar
    Join Date
    Sep 2000
    Location
    Aylmer,Qc
    Posts
    1,606
    did you tried :

    parents.frames.frameName.document.layers["myLayer"].document.open()

  3. #3

    Thread Starter
    Lively Member benski's Avatar
    Join Date
    Sep 1999
    Location
    UK
    Posts
    126
    In the end, I've done it like this:

    window.top.frames['framename'].document.layers[0].document.open()

Posting Permissions

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



Click Here to Expand Forum to Full Width