Originally posted by dmjpro
I try it in both way. But it did not fire, when i click.
Thanks,
Srinivas r.
myElem.id = dealMenu[i]
myElem.id = dealMenu[i]
document.getElementById(myElem.id)
myElem.onClick = function ff(){alert('Helooo.....Yahoooooo');}
if(item.attachEvent)
{
item.attachEvent('onmousedown', functionName);
}
else
{
item.addEventListener('mousedown', functionName, false);
}
if(item.attachEvent)
{
item.attachEvent('onmousedown', functionName);
}
else
{
item.addEventListener('mousedown', functionName, false);
}
if(item.attachEvent)
{
item.attachEvent('onmousedown', functionName);
}
else
{
item.addEventListener('mousedown', functionName, false);
}
Comment