adding img in js

Posted by codedude on Stack Overflow See other posts from Stack Overflow or by codedude
Published on 2010-04-30T17:13:19Z Indexed on 2010/04/30 17:17 UTC
Read the original article Hit count: 176

Filed under:

I'm using javascript to create an image element like so:

var img = document.createElement('img'); 

What would I do to give this img a width of 100%?

© Stack Overflow or respective owner

Related posts about JavaScript