Event.observe(window, 'load', function() { var e = $A(document.getElementsByTagName('*')).find(function(e) { return (e.tagName.toUpperCase() == 'INPUT' && (e.type == 'text' || e.type == 'password')) || e.tagName.toUpperCase() == 'TEXTAREA' || e.tagName.toUpperCase() == 'SELECT'; }); if (e) e.focus(); });
If you could make it work for select menus now, too... ;)
You need to create an account or log in to post comments to this site.