Join Slack
Powered by
Anyone know how to have a client side script call ...
# suitescript
j
jen
03/20/2025, 10:59 PM
Anyone know how to have a client side script call some JS to scroll to the top of the page? My code doesn’t work anymore (used to use
Copy code
document.body.scrollTop = 0; document.documentElement.scrollTop = 0;
)
a
Anthony OConnor
03/20/2025, 11:18 PM
this is for a NetSuite page? the document body isn't the whole body, there's div with id of "body" you need to get that element
Anthony OConnor
03/20/2025, 11:18 PM
image.png
Anthony OConnor
03/20/2025, 11:19 PM
then run the scrollTop JS you were using against that docEle
j
jen
03/21/2025, 3:53 PM
This worked! Thanks,.
🙌 1
9
Views
Open in Slack
Previous
Next