I'm trying to get the id and element name from the HTML tags. This code works:
jQuery(document).ready(function(){
$("*", document.body).mousemove(function(e){
$('#mpos').html(e.pageX +', '+ e.pageY);
e.stopPropagation();
var domEl = $(this).get(0);
$('#elem').html(domEl.tagName);
$('#ide').html(domEl.id);
});
});
But I want it to work also inside an iFrame. If I try now, it only displays the the id and the element name of the iFrame.
Thanks in advance!