Go to item automatically when page loads
I suggest you check another hash first before moving your users browser to focus another element:
if (!document.location.hash){ document.location.hash = 'hi'; } By the way, you can use the hash (the part after # in the URL) to go to any element with id , you do not need to use named-anchors ( <a name="hi">...</a> ).
I think it would be useful to work with anchors:
<a name="hi">here goes the text information what you like</a> Create a link to the "hi" section inside the same document:
<a href="#hi">Go to hi</a> Or create a link to the "hi section" from another page:
<a href="http://www.stackoverflow.com/html_links.htm#hi"> Visit the hi Section</a>