so funtionierts auch:
if (anchor.getAttribute("onclick"))
{
var onclick_old = anchor.onclick;
function cometogether()
{
popuptest();
if( onclick_old ) onclick_old();
}
anchor.onclick = cometogether;
}
thanx!
tom