Body onLoad outside body?!?!

I have a body onload like this:

<body onLoad="Populate('orig',origGrp)">

How do I call this without using body…

I have tryied it like this but with no luck:

window.onload = "Populate('orig',origGrp)";

Where do I go wrong?


window.onload = function(){
    Populate('orig',origGrp);
}

Ahhh… Thanks :slight_smile: