erich.wanker Posted March 24, 2016 Share Posted March 24, 2016 Hello, i use: UniHTMLFrame1.HTML.Clear; UniHTMLFrame1.HTML.Append('Hallo ... to change content at runtime ... But if the UniHTMLFrame1 is scrolled to position X - and i chnage the content - it is still scrolled to the old position i want to set it to (0,0) when i change the content i tryed "BeforeScript" -> window.scrollTo(0,0); and ExrEvents - > function afterupdatehtml(sender, eOpts){ window.scrollTo(0,0); } but with no effects... And ideas how to make this the right way ? ThankX Quote Link to comment Share on other sites More sharing options...
Sherzod Posted March 24, 2016 Share Posted March 24, 2016 Hi Erich, Try: UniHTMLFrame1 -> ... function afterupdatehtml(sender, eOpts) { sender.body.dom.scrollTop = 0 } Best regards. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.