title: Using createElement('img') to get .jpeg instead of .png
body: <p>I would like to use createElement("img') to create .jpeg extension instead of .png </p>
  
  <p><a href="http://books.google.ca/books?id=4RChxt67lvwC&amp;lpg=PA685&amp;ots=tgW8zlOSt7&amp;dq=createelement%20javascript%20img%20jpg%20definitive%20guide&amp;pg=PA866#v=onepage&amp;q=png&amp;f=false" rel="nofollow">According to Flanagan's book JavaScript: The Definitive Guide: Activate Your Web Pages By David Flanagan,</a> </p>
  
  <blockquote>
    <p>For jpeg image type, the second argument should be a number between 0
    and 1 specifying the image quality level.</p>
  </blockquote>
  
  <p>I am not sure what the syntax for the code would be.</p>
  
  <p>Is it something like this?</p>
  
  <pre><code>createElement("img",1)
  </code></pre>