Image element : Image Img : HTML JAVASCRIPT DHTML TUTORIALS


JAVASCRIPT DHTML TUTORIALS » HTML » Image Img »

 

Image element



 
var elem = document.createElement("img");
elem.setAttribute("src""images/logo.jpg");
elem.setAttribute("height""40");
elem.setAttribute("width""120");
elem.setAttribute("alt""GiantCo Logo");
document.body.appendChild(elem);

           
       



-

Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .

Follow Navioo On Twitter

JAVASCRIPT DHTML TUTORIALS

 Navioo HTML
» Image Img