title: Displaying an image on Javascript function call !
body: <p>I am a javascript noob and I need help with this problem !</p>
  
  <p>On a specific condition a function is called and when it is called , I want an image to be displayed ! How do I do that ? this is not working!</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
  function _enabled() {
  document.write("&lt;img border="0" src="http://4.bp.blogspot.com/-C4vvMEB9MyI/TfW0lduV2NI/AAAAAAAAAZc/N7HL1pUusGw/s1600/some image.png" /&gt;");
  }
  
  var r =true;
  &lt;/script&gt;
  </code></pre>
  
  <p>This is not working , I get this error</p>
  
  <pre><code>Error: missing ) after argument list
  Source File: file:///C:/Users/Gowtham/Desktop/new%20%202.html
  Line: 5, Column: 33
  Source Code:
  document.write("&lt;img border="0" src="http://4.bp.blogspot.com/-C4vvMEB9MyI/TfW0lduV2NI/AAAAAAAAAZc/N7HL1pUusGw/s1600/sjs.png" /&gt;"); 
  </code></pre>