// Anzeige der Adressinformationen aller Kontakte function onSuccess(contacts) { for (var i = 0; i < contacts.length; i++) { for (var j = 0; j < contacts[i].addresses.length; j++) { alert("Pref: " + contacts[i].addresses[j].pref + "\n" + "Art: " + contacts[i].addresses[j].type + "\n" + "formatierte Adresse: " + contacts[i].addresses[j].formatted + "\n" + "Adresse: " + contacts[i].addresses[j].streetAddress + "\n" + "Stadt: " + contacts[i].addresses[j].locality + "\n" + "Bundesland: " + contacts[i].addresses[j].region + "\n" + "Postleitzahl: " + contacts[i].addresses[j].postalCode + "\n" + "Land: " + contacts[i].addresses[j].country); } } };