title: Adding alt attribute to image in javascript
body: <p>I want to know how to add alt attribute to an image in javascript, below is my code...</p>
  
  <pre><code>var image = document.createElement('img');
  image.src='../../KY/images/common/buttons/browseIcon.png';
  </code></pre>
  
  <p>Thanks in advance.</p>