function onSuccess(contacts) { for (var i = 0; i < contacts.length; i++) { alert("formatierte Ausgabe: " + contacts[i].name.formatted + "\n" + "Familienname: " + contacts[i].name.familyName + "\n" + "Vorname: " + contacts[i].name.givenName + "\n" + "Zweiter Vorname: " + contacts[i].name.middleName + "\n" + "Titel: " + contacts[i].name.honorificSuffix + "\n" + "Prefix Titel: " + contacts[i].name.honorificSuffix); } };