You can’t use javascript setAttribute() to set an onclick event on a link in Internet Explorer, I’ve discovered. You have to use <element>.onclick = <something> instead.
SeeĀ here http://justinfrench.com/index.php?id=25 and here http://www.quirksmode.org/js/events_tradmod.html
August 9, 2008 at 5:55 pm
most people use a variant of addEvent().
http://www.dustindiaz.com/rock-solid-addevent/
http://dean.edwards.name/weblog/2005/10/add-event/
http://www.quirksmode.org/blog/archives/2005/10/_and_the_winner_1.html
August 25, 2008 at 5:06 am
thanks mateeeeeee
September 21, 2008 at 5:33 pm
events are only a few of the attributes IE can’t set properly.
See this bug report for details on all of them.
http://webbugtrack.blogspot.com/2007/08/bug-242-setattribute-doesnt-always-work.html