Jump to content

Recommended Posts

Posted

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...