<?xml version="1.0"?>

<svg xmlns="http://www.w3.org/2000/svg">

<script type="text/javascript">
<![CDATA[

function boom()
{
  var a = document.getElementById("a");
  a.removeAttribute("end");
  a.setAttribute("end", "a.begin");
}

window.addEventListener("load", boom, false);

]]>
</script>

<animate end="0" id="a" onend="boom()"/>
</svg>