ho provato anche così e sembra funzionare
//salvo in un attributo l'ID
eanch.setAttribute("xyz", id);
//imposto l'evento onclick
eanch.onclick = boo;
in boo() recupero l'id
function boo()
{
alert(this.getAttribute("xyz"));
}
ho provato anche così e sembra funzionare
//salvo in un attributo l'ID
eanch.setAttribute("xyz", id);
//imposto l'evento onclick
eanch.onclick = boo;
in boo() recupero l'id
function boo()
{
alert(this.getAttribute("xyz"));
}
Pietro