How do you add an event to a created element?

I need the div I'm appending to have this event: onmouseover="coordinates(event)"