Autor Zpráva
peta
Profil *
existuje i jednodussi finta nez toto pomoci JS?

function setxClick(x,xClick)
{
if (isIE) {x.onclick=function(){eval(xClick)};} //IE
else {x.setAttribute("onclick",xClick);} //other
}

Chtel jsem to delat jako retezec, ale to mi vubec neslo.
A nechtel jsem pouzivat innerHTML.
Co se mi tam nelibi? To eval() . Ale bohuzel to tam musi byt :)
Toto téma je uzamčeno. Odpověď nelze zaslat.

0