title: onblur onfocus infinite loop issue in chrome
body: <p>A javascript function is used to validate the number is called in OnBlur event. if the value is not valid it will alert a pop up and return the focus to the field.</p>
  
  <p>The sample code:</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;body&gt;
  
  Enter your number: &lt;input type="text" id="fname" onfocus="this.select()" onblur="myFunction(this)"&gt;
  
  &lt;script&gt;
  function myFunction(field) {
      if( isNaN(field.value)){
      alert('wrong !!!');
      field.focus();
      return false;
      }
  }
  &lt;/script&gt;
  
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>validation works fine in Internet Explorer 11(version 11.447.14393.0)/ Windows 10.</p>
  
  <p>But in chrome after clicking ok or close button of alert, the focus does not return to field. Again the alert pop up. so Alert is keep poping up infinitely for every OK/Close click.</p>
  
  <p>the chrome version is  63.0.3239.132 </p>