bonsoir je cherche une fonction qui retournerai le nom d'un ID.

exemple


function test(id)
{
alert(fonction_que_je_cherche(id));
}

test(document.getElementById('prenom'));

j'aimerai que l'alert affiche prenom c'est possible ?