title: PhoneGap error - "Uncaught ReferenceError: cordova is not defined"
body: <p>I'm trying use the menu button on Android, with the PhoneGap. The problem is that I can't use it because appear this error on log:</p>
  
  <p>"Uncaught ReferenceError: cordova is not defined".</p>
  
  <p>This is the source:</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
      &lt;head&gt;
              &lt;!--&lt;script type="text/javascript" charset="utf-8" src="js/cordova-2.6.0.js"&gt;&lt;/script&gt;--&gt;
              &lt;!--&lt;script type="text/javascript" charset="utf-8" src="cordova-2.6.0.js"&gt;&lt;/script&gt;--&gt;
              &lt;!--&lt;script type="text/javascript" charset="utf-8" src="js/cordova.js"&gt;&lt;/script&gt;--&gt;
              &lt;script type="text/javascript" charset="utf-8" src="cordova.js"&gt;&lt;/script&gt;
  
              &lt;script type="text/javascript"&gt;
                  function onLoad() {
                      document.addEventListener("deviceready", function () {
                          document.addEventListener("menubutton", function(){
                              alert('Menu button pressed.');    
                          }, true);
                      }, false);
                  }
              &lt;/script&gt;
  
      &lt;/head&gt;
      &lt;body onload="onLoad()"&gt;
              &lt;p&gt;Hello world!&lt;/p&gt;
          &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>I thought that the problem was the import of cordova.js, so I tried use all this options that were commented.</p>
  
  <p>I don't know if have any relation, but all the times I start the script, appear this error in the console, with the red color:</p>
  
  <pre><code>E/webview(21743): registerForStylusPenEvent onAttachedToWindow
  E/webview(21743): registerForStylusPenEvent START
  E/webview(21743): registerForStylusPenEvent END
  </code></pre>
  
  <p>I'm sorry if had some english error, but I'm trying do it without the Google Translator.</p>
  
  <p>Thank you.</p>