How to set the focus to an anchor when "onload" of the page fires -
11-23-2005
, 11:10 AM
Hello,
I have a html page with an anchor in the middle of the page:
<a name='dana' id='dana'>set focus...</a>
I would like to set the focus of the page to that anchor when the page
loads.
I'm trying to do that by calling an init() function when the page loads and
there to set the focus on the element:
document.getElementById("dana").focus();
This doesn't work...
Any ideas?
Thanks,
Dana |