Hi, I'm new to JS:
<!doctype html>
<script type="text/javascript">
//JS start
function give_me_an_alertbox():
alert("This is an alert box.");
//JS end
</script>
<a href="javascript: give_me_an_alertbox()">ALERT BOX!</a>
How come this code does not work!?
How do I refer to Javascript using href
?