或者记住当前浏览时的offsetTop和offsetLeft
<script>
function onReload()
{
var top = document.body.offsetTop;
var left = document.body.offsetLeft;
location = "url.htm#" + top + "#" + left;
}
function ShowAtPosition()
{
var m_str = location.href;
intd = m_str.split("#");
if(intd.length == 3)
{
window.scrollTo(intd[2], intd[1]);
}
}
</script>