<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
<head>
<title>
javascript超链接onclick事件 - www.osxue.com </title>
</head>
<script>
var test = function(){
alert("hello");
}
</script>
<body>
<a href="javascript:test()">test</a>
</body>
</html>