I have a function
caps = []; /* some array */ function activate() { var index = parseInt(Math.random() * caps.length); if( caps.length > 0) { caps[index].addClass("active"); $("#tip").html(caps[index].html()); } else { win(); } $("a.active").bind("click", function() { var cap = $(this); $(this).fadeOut("fast", function() { cap.replaceWith(""); }); caps.splice(index, 1); activate(); return false; }); return; } it's simple when you click on <A> tag with active class something is happing. The problem is that ONLY Internet Explorer calls this function recursively in infinite loop, why??? Lost half of the day.