onLoad focus to div?

I have a page containing a <div class=“infoBox”>. The autoscroll is set to automatic (all of the page’s content is in the div). I want to have the focus set to the div upon loading so the user can scroll with the arrow keys without having to click the mouse within the div. Is this possible?

tia
Bill Dugan

Give your <div> a unique ID and focus that way:


<body onload="location.hash = 'infoPage';">
<div class="infoBox" id="infoPage">content</div>
</body>

Thank You Vinnie Garcia. That works like a charm.

I should have come here before I spent a couple of hours trying to work it out on my own (but I was close!).