title: how to convert input text to uppercase while typing using javascript
body: <p>In Below code, I want to change the input field to uppercase dynamically i.e. while entering the letters.<br>
  I know the style option i.e. <strong>text-transform</strong> but I want to do it using javascript.<br>
  I am practicing javascript concepts and as a part of learning, I want to do it.</p>
  
  <pre><code>&lt;html&gt;
  &lt;body&gt;
  
    &lt;input type="text" size="40" id="name" name="name"&gt;
  
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>