<a href="#" onclick="alert()">link</a> <script language="javascript" type="text/javascript"> function alert() { alert('This is what an alert message looks like.') } </script>