Access JavaScript Array via DOM

Discussion in 'JavaScript' started by EddiePianoMan, Feb 22, 2008.

  1. #1
    In JavaScript I want to setup an array with several strings:

    var List = new Array();
    List[0] = "Brown";
    List[1] = "Green";

    Then in the DOM I want to access the List array.

    How can I do that?

    Ed
     
    EddiePianoMan, Feb 22, 2008 IP
  2. MMJ

    MMJ Guest

    Messages:
    460
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    0
    #2
    What do you mean "in the dom"?
     
    MMJ, Feb 22, 2008 IP
  3. EddiePianoMan

    EddiePianoMan Peon

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    DOM = Document Object Model.

    If I write Browser Helper Object for Internet Explorer I can get access to the DOM.

    In the OnDocumentComplete method I can get the DOM object as follows:

    m_Document = (DispHTMLDocument)m_WebBrowser.Document;

    Now I want to access the List JavaScript array in the BHO.

    Ed
     
    EddiePianoMan, Feb 22, 2008 IP