I have a div which located at the bottom of the page:
Try setting the window's location to that of the ID. The browser will then scroll to that element.
window.location.hash = '#myDiv';
To scroll to a particular element, use, scrollIntoView, supported by IE6+ and real browsers:
Check window.location.hash on DOMReady, to see if there is a hash in the URL matching any element in your document.
If there are #myDiv links within the document, you would need to add onclick listeners to them, perform the scroll manually, as per the code above, and return false to avoid following the link to #myDiv.
The scrollIntoView(true) method also accepts a parameter specifies whether to align to top (true) or bottom (false).