![Waiting for onload](https://zparacha.com/wp-content/uploads/2010/02/onload-400x400.png)
Why you should stop using onload method.
It is amazing that many web developers still use onload method embedded in the BODY tag, like <HEAD> <BODY onload=”document.contact.userID.focus();”> <form name=”contact”> <input type=”text” name=”userID” > </form> </BODY> </HEAD> There are two problems with this line of code. Embedding code (behavior) with HTML (structure) makes it difficult to maintain the page. onload() method will executes […]