Can I call the onload event from the document.ready of jQuery, like the below:

```
$(function() {
onloadfunc(param);
});

```

**VS:**

```
<body onload = "onloadfunc(param);">

```

Are the above two same?

How can I call onloadfunc(param); in JQuery on Load and not on DOM ready?