I have a lot of experience with jQuery, but less with Prototype. Recently, I needed to add some event handlers to some elements in a Ruby on Rails app I’m building. I searched for how to do the equivalent of jQuery’s
1 2 3
Wrap whatever you’re doing with that, and it won’t be run until the document is loaded.