Browser warning when closing tab when editing/filling out a form!

I would like to see this added as a feature.

Solution is to make one of the fields required. Then if they submit, it won’t complete the form unless the required fields are filled.