Prototype event observer problem

Peter Michaux
2006-03-19T08:09:16Z

Hi,

I am trying to use prototype.js to observe when a page has loaded and
then call a handler function to initialize a javascript dropdown menu.
I''ve done it without prototype but I would rather use prototype and
remove some of my code. I tried this

Event.observe(window, "load", sM.init());

It doesn''t work.

What to try next?

Thanks,
Peter