I wrote the following code:
<span id="spanID">
hello world
</span>
<script type="text/javascript">
document.getElementById("spanID").onclick = function(){alert('yes');}
</script>
I tested the code in a html page and it worked, but when I put the code in the "edit HTML" tab in the new blog page it didn't work, and the onclick event didn't ocuur when I clicked on the "hello world" text in the compose tab. why?

