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>.