We Recommend

Pro JavaScript Techniques Pro JavaScript Techniques
Pro JavaScript Techniques is the ultimate JavaScript book for the modern web developer. It provides everything you need to know about modern JavaScript, and shows what JavaScript can do for your web sites. This book doesn't waste any time looking at things you already know, like basic syntax and structures.


Posted By

tylerhall on 11/01/06


Tagged

javascript onload attach


Versions (?)


Who likes this?

1 person has marked this snippet as a favorite

rnrleachryan


Unobtrusively Attach onLoad Event


Published in: JavaScript 


Unobtrusively attaches an onLoad event to the window.

  1. window.onload = function() { document.getElementById("email").focus(); };

Report this snippet 

You need to login to post a comment.