PennController for IBEX › Forums › Support › Jump to top of page when new item is loaded › Reply To: Jump to top of page when new item is loaded
May 11, 2022 at 1:34 pm
#8175
Jeremy
Keymaster
Hi Nadine,
I see, this happens when a new element gets added to the page: PennController tries to scroll down to make it visible, since otherwise when elements gets added under ones that already occupy the page’s full vertical viewport, participants might not notice that a vertical scrollbar just appeared and that an element now lies below the ones visible on the page
Anyway, just add newFunction( () => window.scrollTo(0,0) ).call()
immediately after you print your Text element, that should do the trick
Jeremy