var hyp = document.createElement("a");
//hyp.style.cssText='cursor:pointer';
hyp.onclick="RemoveDv('" + divid + "');";
hyp.innerHTML = "Remove";
I have javascript with this code snippit in there. In firefox everything works fine but in IE8 it works fine if I run it locally, but uploading the code to a server and running through my same IE8 browser that I ran it locally the RemoveDv event will NOT fire.
This is the html created from this javascript
<a style="cursor: pointer;" onclick="RemoveDv('dv1');">
onclickshould be a function, not a string.EDIT: Hey, this is my 2,000th answer!