how to use javascript to add link to image element created using javascript
Posted
by parag
on Stack Overflow
See other posts from Stack Overflow
or by parag
Published on 2010-04-12T10:37:03Z
Indexed on
2010/04/12
10:43 UTC
Read the original article
Hit count: 359
JavaScript
how to add link for the image created using following javascript.
thanks for any help or replies.
for(var i=0; i<images.length; i++) {
var t = document.createElement('IMG');
t.setAttribute('src',images[i]);
t.setAttribute('border', 0);
t.setAttribute('width',imageWidth);
t.setAttribute('height',imageHeight);
t.style.position = 'absolute';
t.style.visibility = 'hidden';
el.appendChild(t);
}
© Stack Overflow or respective owner