Duplicate Check against Address field

Duplicate Check against Address field

What is the best away to throw an alert when a customer types in an address that is already in the database? Prefer to do it before form submission, i.e. post entering the address into the field.