I'm using mooTools and I need to call function TestA() on click event on a tag but that doesn't work. I know that I can attach event do a tag via $().addEvent(...) but I need use approach like bellow.
<script type='text/javascript'>
window.addEvent('domready', function () {
function TestA(){}
});
function TestB(){}
</script>
<a href="#" onclick="TestA()">Test</a>