blob: a76d8157cba5e2cb933e002f7f6a9a7f45b021e0 [file] [log] [blame]
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" onload="test(evt)">
<script>
function test(evt) {
if (evt)
document.getElementById("rect").setAttribute("fill", "green");
}
</script>
<rect id="rect" width="100" height="100" fill="red"/>
</svg>