Can't get syntax correct for dynam. create onclick the ie way.
- by Max
I was hoping to keep cross-browser compatibility and afaik this is the only issue so far.
.setAttribute("onclick", "return showRapidText("+itemnum+");");
This works PERFECT but I'd like to make it IE compatible by putting it in this syntax
.onclick = new Function("fnDisplay_Computers('" + alines[i] + "')");
so... I tried
.onclick = new Function("showRapidText('" + itemnum + "')");
and
.onclick = new Function("return showRapidText('" + itemnum + "')");
and about 40 other ways but nothing works