A common question on (web) programming forums for beginners, you can find the "How do I perform various actions as soon as the page loads on the client side in JavaScript?" These questions will mostly be answered by either "Use document.ready" or "Use window.load" sporadically. It is quite common that people need to attach some actions to the Page_Load event on the client side. However there are two main functions that I frequently see mixed with each other when served to the beginning programmer, confusing when to use which.