How do I use jquery to scroll right down to the bottom of an iframe or page?
相关问题
- How to fix IE ClearType + jQuery opacity problem i
- jQuery add and remove delay
- Include empty value fields in jQuery .serialize()
- Disable Browser onUnload on certain links?
- how to get selected text from iframe with javascri
After this thread didn't work out for me for my specific need (scrolling inside a particular element, in my case a textarea) I found this out in the great beyond, which could prove helpful to someone else reading this discussion:
Alternative on planetcloud
Since I already had a cached version of my jQuery object (the
myPanel
in the code below is the jQuery object), the code I added to my event handler was simply this:(thanks Ben)
If you want a nice slow animation scroll, for any anchor with
href="#bottom"
this will scroll you to the bottom:Feel free to change the selector.
Edit: Please look at the answer below by Tom Bates for a potentially better answer.