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>
<a id="myBtn" href="#">click me </a>
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…