Validation: What is the method used in this example?

1

I'm studying ways to do form validation. I've tested with Javascript, with HTML5 features and some other methods, but they all have something in common.

I always have to call a function in onclick (), onblur () and the like.

I would not like to do this, since removing this from the code, all validation would be cheated. So I thought of ways to do some kind of validation that does not have to be called to the click of a button or the like. This example from the gmail site made me curious:

See that HTML5 patterns or required are not used or no Javascript function calls through clicks. Anyone have any idea how this validation was done?

    
asked by anonymous 22.01.2017 / 06:38

0 answers