title: Javascript Error : get(0).getContext('2d') Not Working
body: <p>In this exercise I want to take screenshot of DIV. In this DIV <strong>Google MAP</strong> is shown.</p>
  
  <p>To take screenshot I used this code,</p>
  
  <pre><code>&lt;div id="map_canvas" style="height: 400px; width: 100%;"&gt;&lt;/div&gt;
          &lt;button onclick="capture()"&gt;Click me&lt;/button&gt;
          &lt;script type="text/javascript"&gt;
              function capture()
              {
                  var c = document.getElementById('map_canvas');
                  var t = c.getContext('2d');
                  window.open('', c.toDataURL());
              }
          &lt;/script&gt;
  </code></pre>
  
  <p>Some how it is not working,</p>
  
  <p><strong>Throwing error - c.get is not a function</strong></p>
  
  <p>If this not solution then please feel free to suggestions.</p>
  
  <p>Thnaks. </p>