The
scrollTop
property isn't
W3C
standard - even it implemented in most browsers (originally form
IE
), but not in
Chrome
.
The standard property called
pageYOffset
(not supported in
IE < 9
) - try it!
window.onload = SetTop;
function SetTop() {
var verticalTop = document.getElementById('<%=hScrollPosition.ClientID %>').value
document.documentElement.pageYOffset = verticalTop;
}