<a onclick="oldJS(); return false;" href="#">old school javascript</a>
<a onclick="javascript: oldJS(); return false;" href="#">more old school javascript</a>
<a href="javascript: oldJS();">yet more old school javascript</a>
<a id="good-js" href="non_js_content.html">The modern way of doing it</a>