Champ: Event-Hanler unter Netscape

Beitrag lesen

Das war natürlich Quatsch, so kannst du es machen:

<html>
<head>
<title>Unbenannt</title>
<style>
.standardbold { font-family: Arial; font-size: 9pt; font-style: normal; line-height:normal; font-weight: bold; font-variant: normal; text-transform: none; color: #0000ff; text-decoration: none }

</style>  
<script>function test(){alert('He ho')}</script>  

</head>

<body>
<a  class="standardbold" href="javascript:test()">Text</a>
<a class="standardbold" href="#" onclick="test()">Text2</a>

</body>
</html>