Maintain scroller position on Div after page postback (ASP.NET)

后端 未结 6 1018
执念已碎
执念已碎 2021-01-05 05:30

I have a div as such:

I contains a few hundred records and allows me to select an i

6条回答
  •  情话喂你
    2021-01-05 05:51

    Replace thebody with document.getElementById("divTest")

    If you worry that the onscroll event does not work in opera/ff, you can try changing

    thebody.onscroll=SaveScrollLocation;
    

    to

    setInterval('SaveScrollLocation()", 500);
    

提交回复
热议问题