<div style="height:200px;border:solid blue">Bu div elementidir
  <p style="background-color:red; color:#fff;">Bu bir paragraf</p>
</div><br>

<div id="w3tr" />
$("div, p").mouseenter(function(event){
  $(".w3tr").html("İlgili hedef : " + event.relatedTarget.nodeName);
});

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

  1. https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js