PDA

View Full Version : Object HTMLDivElement



fambi
03-05-2007, 03:41 PM
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?

shachi
03-05-2007, 03:48 PM
Please include your function or a link to your website.

fambi
03-05-2007, 04:07 PM
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

fambi
03-06-2007, 03:42 AM
Just to let you know i got my answer... relTarg .id

Thanks.