SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Member
    Join Date
    Dec 2004
    Location
    xi'an,china
    Posts
    14
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    about document.getElementById("test").document.images

    use this code below

    document.getElementById("test").document.images

    i can get the Images object in IE.But can not run with firefox.what is the method for Firefox to get the childrens' images(only) object?

    loop the total childNodes or childrens?

  2. #2
    SitePoint Addict
    Join Date
    May 2004
    Location
    Europe
    Posts
    216
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Wow, that really works in IE. Sick...

    document.getElementById("test").getElementsByTagName("img")

    is the cross-browser compatible way.

  3. #3
    SitePoint Member
    Join Date
    Dec 2004
    Location
    xi'an,china
    Posts
    14
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    surely can,thx,


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
  •