title: Phonegap - events such as focus(),blur() not called in JavaScript
body: <p>I have just started using Phonegap, I wanted to clear the textbox content when the user clicks on the textbox.</p>
  
  <p><strong>HTML:</strong></p>
  
  <pre><code>&lt;input type="text" class="clear" id="dateVal" name="date" value="date" onblur="clear();"/&gt;/
  </code></pre>
  
  <p><strong>JavaScript</strong></p>
  
  <pre><code>function clear() {
          document.getElementsByTagName('input').value = '';
      }
  </code></pre>
  
  <p>But the clear function is not getting called. Also, just tried putting <code>alert</code> in <code>clear()</code>
  function(did not help). Everything else working okay. Any help would be appreciated.</p>
  
  <p><strong>Full HTML Code:</strong></p>
  
  <pre><code>&lt;!DOCTYPE html&gt; &lt;html&gt;   &lt;head&gt;
      &lt;title&gt;Age Calculator&lt;/title&gt;
  
      &lt;script type="text/javascript" charset="utf-8" src="cordova-1.8.1.js"&gt;&lt;/script&gt;
      &lt;script type="text/javascript" charset="utf-8"&gt;
        document.addEventListener("deviceready",onDeviceReady,false);
  
      function onDeviceReady() { 
          alert('welcome');
      }
          function calAge() {         
            var x = confirm('Click here to calculate the age'); 
            if(x == true) {
             document.getElementById('ageId').style.display = block';
            } else {
                navigator.app.exitApp();      }
           }   
          function submitValues() {
                  var todaysDate = new Date();
                  var y = todaysDate.getFullYear();
                  var m = todaysDate.getMonth() + 1;
                  var d = todaysDate.getDate() + 1;
                  var myYear = document.getElementById('yearVal').value;
                  var myMonth = document.getElementById('monthVal').value;
                  var myDate = document.getElementById('dateVal').value;
                  var myYear = (y-myYear);
                  var myMonth = (m-myMonth);
                  var myDate = (d-myDate);
                  document.getElementById('ageId').style.display = 'none';    
                  document.getElementById('result').innerHTML = 'You are '+myYear+'years '+myMonth+' months and '+myDate + ' days old :-)';
                              }   function clear() {      document.getElementsByTagName('input').value = '';  }
      &lt;/script&gt;   &lt;/head&gt;   &lt;body&gt;
      &lt;button onclick="calAge();"&gt;Age Calculator&lt;/button&gt; &lt;br&gt;
      &lt;div id="ageId" style="display:none;"&gt;
          &lt;b&gt;Please Enter your Date Of Birth in (dd/mm/yyyy) format:&lt;/b&gt;
          &lt;input type="text" class="clear" id="dateVal" name="date" value="date" onblur="clear();"/&gt;/
          &lt;input type="text" class="clear" id="monthVal" name="month" value="month" /&gt;/
          &lt;input type="text" class="clear" id="yearVal" name="year" value="year" /&gt;
          &lt;input type="button" value="submit" onclick = "submitValues();" /&gt;
      &lt;/div&gt;
      &lt;div id="result"&gt;
      &lt;/div&gt;   &lt;/body&gt; &lt;/html&gt;
  </code></pre>