SVG XML


  "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
     xmlns="http://www.w3.org/2000/svg">
  Capture mouse click events
   
    function mouseClick1(evt)
    {
       var circle = evt.target;
       var currentRadius = circle.getAttribute("r");
       if(currentRadius == 50)
       {
          circle.setAttribute("r", currentRadius*2);
          circle.setAttribute("fill", "#FF0000");
       }else{
          circle.setAttribute("r", currentRadius*0.5);
          circle.setAttribute("fill", "#FFFF00");
       }
    }
  
        
           
             Click inside the circle
           
        
        
                            fill="#CCCCCC" stroke="blue"/>
                              cx="250" cy="150" r="50" fill="blue"/>