This small JavaScript demo lets you draw a polygon with mouse clicks and detect whether the cursor is inside or outside the shape in real time. It uses SVG (Scalable Vector Graphics) and basic geometry to achieve this. Tested on Firefox, Chrome, and Edge browsers.
File location: https://github.com/nurbs3000/july2025...