How do you add an onload event to an element?
onload
Can I use:
for t
Use the body.onload event instead, either via attribute ( ...) or by binding an event in Javascript. This is extremely common with jQuery:
...
$(document).ready(function() { doSomething($('#myDiv')); });