title: VBScript to color input text field
body: <p>I have the below code.</p>
  
  <p>I have an input text field which has an example value grey colored. When clicking on the field, the text is erased and color is set to black. Then, after it finishes some VBScript, the fields are cleared and the example is back in the input field, but I cannot get it to also color it grey at this point.</p>
  
  <p>Everything works fine except UserName.style = "color: #ccc;" in the VBScript.</p>
  
  <p>Am I missing something here? VB error says "Not implemented"</p>
  
  <p>Any solution highly appreciated.
  Thank you.</p>
  
  <p>VBScript:</p>
  
  <pre><code>UserName.value = "Example: JSmith"
  UserName.style = "color: #ccc;"
  &lt;/SCRIPT&gt;
  </code></pre>
  
  <p>HTML:</p>
  
  <pre><code>&lt;input type="text" name="UserName" value="Example: JSmith" style="color: #ccc;"  onfocus="myFunction(UserName)"&gt;&lt;p&gt;
  </code></pre>
  
  <p>JavaScript:</p>
  
  <pre><code>function myFunction(x)
  {
  x.style.color="black";
  x.value="";
  }
  </code></pre>