Anyone know how to have a client side script call ...
# suitescript
j
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
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
image.png
then run the scrollTop JS you were using against that docEle
j
This worked! Thanks,.
🙌 1