what best javascript formula emanate an img element


i wish emanate rudimentary bit js formula creates an settlement component credentials doesn't arrangement anything. settlement component tracking url (such omniture) needs rudimentary strong work ie 6 =< only. here formula i have:



var oimg = document.createelement("img");
oimg.setattribute('src', 'http://www.testtrackinglink.com');
oimg.setattribute('alt', 'na');
oimg.setattribute('height', '1px');
oimg.setattribute('width', '1px');
document.body.appendchild(oimg);


is simplest nonetheless many strong (error free) proceed it?



i can't horizon jquery. needs plain javascript.



Comments

Popular posts from this blog

list macos calm editors formula editors

how hibernate @any-related annotations?

why does floated <input> control floated component slip over too distant right ie7, nonetheless firefox?