How do I do this?
<html>
<head>
<script language="javascript">
function teste(){
alert("oi");
}
document.getElementById("as").onclick = function(){
teste();
}
</script>
</head>
<body>
<input type="button" id="as" value="AQUI">
</body>
</html>