Prototype equivalent for jQuery document.ready

/ Published in: JavaScript
Save to your folder(s)

Runs JS after DOM load.
Works since Prototype Version 1.6.0

Copy this code and paste it in your HTML
  1. document.observe("dom:loaded", function() {
  2. // your functions
  3. });

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.