```
<svg xmlns="http://www.w3.org/2000/svg">
    <title>On end test</title>
    <circle r="50" cx="100" cy="100" style="fill: #F00">
        <set attributeName="fill" attributeType="CSS" onbegin='alert("onbegin")'
            onend='alert("onend")' to="#00F" begin="1s" dur="5s" />
    </circle>
</svg>

```

you can try this code [here](http://jsfiddle.net/AxLGF/)

it looks onbegin event not work on the IOS device, dose anyone here has a clue?