Set Image URL to image tag using javascript

Rajni.Shekhar
Posted by Rajni.Shekhar under JavaScript category on | Points: 40 | Views : 4573
Use following line to set image URL

document.getElementById('imgID').src='../images/image1.gif';//will take image from image folder in application root

Comments or Responses

Login to post response