🌍 Public
Viewing a saved revision (read-only)
41f382afcba3470691ee05c4417b38bc
Fork of HTML Starter
This interactive example shows how JavaScript can dynamically modify the contents of an SVG drawing. The page displays an SVG scene with a single circle; clicking the "Load Circle" button adds a new circle at a random position and with a random radius, while clicking "Delete Circle" removes a randomly selected existing circle. The code demonstrates DOM manipulation using `document.createElementNS` and `setAttribute`, alongside standard JavaScript event handlers. The SVG is styled with CSS, and the drawing uses an off-white teal color scheme.
AI-generated description