Forum Moderators: coopster
<script type="text/javascript">
document.getElementById('myElementId').focus();
</script>
However, this sort of code must come AFTER "myElementId" on the page (thus why I recommend putting it just before the </body> tag), because otherwise the javascript will load and execute, but will not find "myElementId" because it hasn't been loaded yet.
Alternately, you could find a method of determining when the page has loaded and call a function to focus on the element.
If you use Firefox, I would highly recommend downloading a plugin (not sure if I can name it here) that allows you to debug javascript. If any javascript errors come up, it will show you what the error is and where in the code it comes from--you can also set breakpoints in the JS code and step through it to see where your problem occurs and what the values of nearby variables are. Very handy.
Hope this helps!