Html ondragout event?

I have a table that will contain the elements dragged into each cell by the user.

<td ondrop="dropIt(event);" ondragover="dragOver(event)" onMouseOver="this.bgColor='grey';" onMouseOut="this.bgColor='white';"></td> 

When the user iterates over a cell, I want it to turn gray. When the mouse leaves the cell, I want it to turn white again.

Similarly, when a user drags an element around a cell, I want it to turn gray. The problem I am facing turns it white again after the user moves to another cell. Is there any ondragout event in html?

thanks

+8
html events
source share
1 answer

Sorry for the stupid question! I just found the ondragleave event.

thanks

+19
source share

All Articles