I have recently read an old (not updated) book about javascript.

In the book that talk about the ability of the father object to capture the event of the sun and to detect it.

They used in the object event and event.srcElement.type and event.srcElement.name, I tried and it worked for me.

When I searched in google for this, I could not find a direct information about this type of object but more about surround topics like events in Javascript in general.

Can someone know about good source in the internet that explain about the event object and srcElement etc etc