279Chapter 15Generic HTML Element Objectsfunction whereInWorld(elem) { var (Web hosting support)
279Chapter 15Generic HTML Element Objectsfunction whereInWorld(elem) { var x = event.clientX; var y = event.clientY; var component = document.getElementById( myTextarea ).componentFromPoint(x,y); if (window.event.srcElement == document.getElementById( myTextarea )){ if (component == ) { status = mouseDown event occurred inside the element ; } else { status = mouseDown occurred on the element s + component; } } else { status = mouseDown occurred + component + of the element ; } }
componentFromPoint() Method
Tracking the mouseDown event relative to the textarea object. Viewresults in status bar.