Pregunta de entrevista de MathWorks

Difference between document.ready() and window.onl0ad() javascript function.