A bookmarklet to scroll to the bottom of a webpage
Posted
by mathiregister
on Stack Overflow
See other posts from Stack Overflow
or by mathiregister
Published on 2010-06-06T21:57:48Z
Indexed on
2010/06/06
23:02 UTC
Read the original article
Hit count: 193
JavaScript
|bookmarklet
hi guys, i wonder if it is possible to create a bookmarklet to click on and the current webpage scrolls to the bottom!
javascript:function%20scrollme(){dh=document.body.scrollHeight;ch=document.body.clientHeight;if(dh>ch){moveme=dh-ch;window.scrollTo(0,moveme);}}
if i create a new bookmark and paste this as address nothing happens. I actually have no idea how to run javascript within a bookmarklet, however i just bookmarked the css-tricks Printliminator
maybe you could help, i would love to have a bookmarklet like this!
© Stack Overflow or respective owner