I would like to change the cursor from default to pointer when the mouse enter the rectangle (50, 50, 100, 100) of the body element (the numbers are in pixels).
I know that I could define a div, place it at this position, and set cursor: pointer; on it, but I'm looking for some way without defining a div.
I would like to something like:
if (mousePosition inside rectangle) {
change cursor to pointer
} else {
change cursor to default
}
Is that possible to do that ?