On my website, I have an iframe control within an update panel that refreshes every 4 seconds and sets focus to a specific textbox within the iframe. However, this causes the scroll position of the page to change each time. I have tried using the MaintainScrollpositononPostBack
option and the following JavaScript code to address this issue:
function scroll()
{
var obj = document.getElementById("Form1");
obj.scrollTop = obj.scrollHeight;
}
Could someone please provide guidance on how to resolve this problem?
Thank you in advance.