How to have an element invoke a javascript on selection, instead of going to a new URL: ?

<script type="text/javascript">
function pseudoHitMe() {
alert("Ouch!");
}
</script>
<a href="javascript:pseudoHitMe()">hit me[/url]

0 comments:

Post a Comment