'elementFromPoint()' Example : elementFromPoint : Node Operation JAVASCRIPT DHTML TUTORIALS


JAVASCRIPT DHTML TUTORIALS » Node Operation » elementFromPoint »

 

'elementFromPoint()' Example



    
<html>
<body>
<script language="JavaScript">
function function1() {
    var m = document.elementFromPoint(150150);
    var n = m.tagName;
    alert("The element located at point (150, 150) is "+n)
}
</script>
<button onclick="function1();">Click to reveal element</button>
</body>
</html>

    
      
      



-

Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .

Follow Navioo On Twitter

JAVASCRIPT DHTML TUTORIALS

 Navioo Node Operation
» elementFromPoint