Mouse capture has been set to this division ( DIV ) at load time using the setCapture method. This text area will track the mousemove event through the x and y properties of the event object.
Event bubbling works as usual on objects within a container that has mouse capture. Demonstrate this concept by clicking the button below or changing the active window from this one then back. After this DIV has lost mouse capture, this text area continues tracking the mousemove events only while the cursor is over objects that it contains.
This section here illustrates that mousemove events over objects this contains are captured on the DIV above.
Click this text and check mouse coordinates captured in the text area within the division above.
© 2025 Reynald Nuñez and asp.net.ph. All rights reserved.