Can you use onLoad with object instances?

Is this possible with a custom made object?

myObject = new Object();

myObject.onLoad = someFunction;

where someFunction is defined as a prototype of the Object?

object.prototype.someFunction = function() {
do something;
}

Please assume that I am totally new to objects, classes, and prototypes because I am. :bounce: