« Return to the blog entry
I'm not sure if using exactly setAttribute() method in the example above, got any explanation, but why not use much more cleaner form:
lnk.href = 'all/' + unid + '?OpenDocument';
lnk.target = '_blank';
/* ... */
div.id = unid;
All of these atributes are available as a properties.
I'm not sure if using exactly setAttribute() method in the example above, got any explanation, but why not use much more cleaner form:
lnk.href = 'all/' + unid + '?OpenDocument';
lnk.target = '_blank';
/* ... */
div.id = unid;
All of these atributes are available as a properties.