SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Member
    Join Date
    Nov 2010
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Element by Html page

    Sorry for my english, but i'm italian. So, i have a problem. I have created an addon for Firefox and this addon must take an element from a google code page.

    I need to take value of a textarea and show it in my popup . I have tried to use this instruction:
    window.opener.document.getElementById("text")

    but as result i have "null". I have tried to print an alert. How can i resolve this problem??

  2. #2
    Non-Member Kalon's Avatar
    Join Date
    Aug 2010
    Location
    At my computer
    Posts
    2,012
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    try
    Code:
    window.opener.document.getElementById("text").value


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
  •