Here's the line of code: var nearBottomOfPage = $(window).scrollTop() > $(document).height() - $ (window).height() - 200; How could I get that working with Prototype? Thank you very much! -- You received this message because you are subscribed to the Google Groups "Prototype & script.aculo.us" group. To post to this group, send email to firstname.lastname@example.org. To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en.