Form JavaScript Tutorial

The onFocus event handler is fired when focus is set to that particular submit button.