Thanx vinod but that's not what I meant!
With onmouseover event you'll have to move a mouse a bit to make the event fired...
In my issue, the mouse has no movement and still you need to know what the object id is:
To see that your solution does not work with this put and call an alert() function on your page and then move your mouse on top of one of the td tags and then press enter so that the alert will be closed and your mouse is on top of that td tag...you'll see that the onmouseover wouldn't fire and you have no id in hand until you move your mouse a bit...
And event if it would work, it ain't reasonable to put onmouseover in every tag of your page...
By far document.elemenFromPoint has been the best solution. Such a pity that it works only on IE.
|