how to use alt of image in javascript t wirte something

Posted by Shanky11 under JavaScript on 6/5/2013 | Points: 10 | Views : 1013 | Status : [Member] | Replies : 0
i have to use the alt of image how can i set this property in javascript
i m trying this but alt is not coming.............
var img1 = new Image();
img1.src = "images/mall1.jpg";
document.$Image1 = img1;
<div id="cap1" style="display:none">
<a>Royal Meenakshi Mall, Old Madras Road Bangalore</a>.


(No response found.)

Login to post response