Thank you from the bottom of my iPad
November 29, 2022 11:54 AM   Subscribe

Javascript help needed: what is the code that will bring me to the bottom of a webpage on Safari in IOS 14.8?

I love the jump to the end of a page link on Metafilter, so I copied the (then) code to a favorite link on my iPad, and used it to jump to the end of any webpage I'm on.

(the copied code is: "javascript:document.body.scrollTop%20=%20document.body.scrollHeight;")

This worked great on my old iPad (IOS 9.3.5), but it does nothing on my new one (IOS 14.8). What code will bring me to the bottom of a webpage on the new one?

many TIA!
posted by mirileh to Computers & Internet (2 answers total) 2 users marked this as a favorite
 
Best answer: Maybe try window.scrollTo(0, document.body.scrollHeight) instead? That should be pretty well supported. body.scrollTop had some browser differences (Chrome was weird) so it got deprecated.
posted by cmm at 12:08 PM on November 29, 2022 [1 favorite]


Try changing each %20 to a space. Or just deleting them.
posted by likedoomsday at 12:59 PM on November 29, 2022 [1 favorite]


« Older Life After Garlic   |   What is the Rotary Club like? Newer »
This thread is closed to new comments.