Pergunta de entrevista da empresa MathWorks

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