We are using below code on our web application master pages inside SharePoint 2003 to make scroll bar position always on top.
function MoveUp() {
if (window.parent.document.getElementById('WSSMainContainer') != null)
window.parent.document.getElementById('WSSMainContainer').focus();
if (window.parent.document.getElementById('MSOPageViewerWebPart_WebPartWPQ2') != null)
{
window.parent.document.getElementById('MSOPageViewerWebPart_WebPartWPQ2').scrolling = 'no';
window.parent.document.getElementById('MSOPageViewerWebPart_WebPartWPQ2').style.overflow = 'hidden';
if (window.document.body.scrollHeight > 1400)
window.parent.document.getElementById('MSOPageViewerWebPart_WebPartWPQ2').style.height = window.document.body.scrollHeight + 100;
}
}
<body onload="MoveUp();"> ....
Now we migrated our application to SharePoint 2013 and the same code we are using is no longer working.
Anyone experience the same issue?