Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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';
- });
- if (e) e.focus();
- });
Add Comment
Please, Sign In to add comment