I don't know why I don't get the alert message when I do a mouseover on the link.
The link is for users to download a pdf.
I want to alert them to know they will get a pdf if they click on the the link, when they mouseover the link they get a message pdf file to download
The mouseover isn't happening?? The error says type error document.getElementById is null.
This is my code.
<script type="text/javascript">
document.getElementById('id').onmouseover = function() { alert('click to download pdf') }
</script>
This is the anchor link
<a href="white_papers/Monitoring_of_stem_cell.pdf" target="_blank" onMouseOver="this.id=''" id="stem_cell"
Monitoring of stem cell</a>
THANKS!