Hi.
I’m creating a list of links.
var elnews = document.createElement(‘a’);
elnews.setAttribute(‘href’, entry.link);
elnews.setAttribute(‘target’, ‘_blank’);
elnews.setAttribute(‘style’, ‘color:red;’);
elnews.setAttribute(‘style’, ‘text-decoration:none;’);
but color doesn’t work and text-decoration:none doesn’t work, If I eliminate
elnews.setAttribute(‘href’, entry.link);, then the color works ok.
Maybe its mixed with the style of the page that holds this thing, but I don’t know what happens.
Any idea???
Thanks