I will have mainArea div with child div myReport.
You need to fixed the height for the mainArea div with style
Now your div can scroll, You now need to write one line code in any javascript function
function scrollMainArea()
{
document.getElementById(“mainArea”).scrollTop = 0;
}
This will move your myReport div to show the top portion of your division.
No comments:
Post a Comment