<A id="aLink" href="#">a test link</A>
function focusLink() { var main = document.getElementById('aLink'); main.focus(); } function blurLink() { var main = document.getElementById('aLink'); main.blur(); }