Question
1
Replies
696
Views
Posted: November 16, 2017
Last activity: November 16, 2017
Closed
How can we change scroll focus from bottom to TOP of webpage when redirected
In our application we are calling another microsite from another microsite. Link to second microsite is at the bottom of page . We we click on that link, second microsite open with scroll bar at bottom. We want it to be on top at load. I tried calling script window.scrollTo(0,0) on href of microsite. But somehow it is not working. Can anyone suggest me any possible solution
HI,
Is there any other code overriding your current code, please verify in userworkform or any other custom css.
also i am suspecting that the CSS class which you might be giving is not correct.
Also where are you writing the scrollTo(0,0) code? Userworkform?
If not working there, then try to add a non-autogenerated sectionby writing that code into Section and try it out .