Skip to content Skip to sidebar Skip to footer

Dom Appendchild To Insert Images

I have this code that creates links. /* Create a link to activate the tab */ DOM_a = document.createElement('a'); DOM_a.appendChild(document.createTextNode(t.headingText

Solution 1:

You should create the image using own DOM methods too:

Something like this:

var DOM_img = document.createElement("img");
DOM_img.src = "typo3conf/ext/ori_proyectos/res/images/interes.png";

DOM_a.appendChild(DOM_img);

A working example here.

Post a Comment for "Dom Appendchild To Insert Images"