Results 1 to 4 of 4

Thread: Object HTMLDivElement

  1. #1
    Join Date
    Jan 2006
    Posts
    22
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Object HTMLDivElement

    Hi all,

    In the context of a function which has var X = ???.

    Doing alert(X) gives [object HTMLDivElement].

    Any idea how to find out what it's ID is?

  2. #2
    Join Date
    Aug 2005
    Posts
    971
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Please include your function or a link to your website.

  3. #3
    Join Date
    Jan 2006
    Posts
    22
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thanks for the fast response.

    The function is:

    function SuperBoxOut(e)
    {
    if (!e) var e = window.event;
    var relTarg = e.relatedTarget || e.toElement;
    }

    Which is being called by:

    onmouseout="SuperBoxOut(event)"

    Thanks

  4. #4
    Join Date
    Jan 2006
    Posts
    22
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Just to let you know i got my answer... relTarg .id

    Thanks.

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
  •