I am following this link to learn about basic javascript but for some strange reason this little piece of code does not seem to be playing nice with me. Any suggestions on why I am not getting the alerts would be appreciated
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>Creeper</title>
<script type="text/javascript">
addEvent(window, "load", sayHi);
function sayHi(){
alert("jekyl");
}
</script>
</head>
<body>
<a href="#" title="click me", id="my-link">Click Me!</a>
</body>
</html>