In a standard DOM event, the event object contains properties and methods related to the specific event that created it. The types of events that are triggered are different, and the available properties and methods are different.
Here, we only look at properties or methods that are compatible with all browsers. First of all, let's look at the target in the srcelement and the Internet Explorer, both of which represent the goal of the event.
<script type= "Text/javascript" >functionGettarget (evt) {varE = EVT | |window.event; returnE.target | | E.srcelement;//compatible Get event target DOM object} window.onload=function() {Document.onclick=function(evt) {vartarget =Gettarget (EVT); alert (target); //Click where you can get the DOM element object to wherealert (target.innerhtml); }; };</script>JavaScript Event Object _ other properties and methods