[javascript] Why does an onclick property set with setAttribute fail to work in IE?