title: How do I change Background color of textbox when onfocus?
body: <p>I tried this code but its not working; when I on-focus textbox it shows an error:</p>
  <pre><code>function ChangeBgColor(obj, evt) 
   { 
          if(evt.type==&quot;focus&quot;) 
              style.background =&quot;lightgrey&quot;;
          else if(evt.type==&quot;blur&quot;) 
          {
             style.background=&quot;white&quot;;
          }          
   }
  </code></pre>