Google's developer site (https://developers.google.com/web/fundamentals/design-and-ui/input/forms/provide-real-time-validation#use-javascript-for-more-complex-real-time-validation) and the Forms Udacity course talk about this method.