can you call a javascript function on event handlers? What I mean is like,
... onClick="dosomething()">
<script type="text/javascript">
function dosomething(){alert("I just did something");}
the code isn't complete but i've tried it this way all nice and neat and it doesn't work, does this mean we have to enter the whole JS code inside the event handler???