Why is simple JavaScript code not running ?
<script type="text/javascript" charset="utf-8">
var btn = document.getElementById("myBtn");
btn.onclick = function(){
alert("Clicked");
};
</script>
</head>
<body>
<a id="myBtn" href="#">click me </a>
</body>
return false;to the end of the function? And have you tried it on another browser? I have a feeling the alert's being blocked