title: vbscript is not working on IE10 browser mode
body: <p>Our client decided to upgrade to windows 7 and IE 10. Our application which is in 1.1 dot net framework is having issues as it contains vbscript which does not work as soon as user changes the browser mode to IE 10. It works fine if the browser mode is selected as IE 10 compatibility view. It also works fine on IE9,IE8.
  Vbscript can be as simple as below.</p>
  
  <pre><code>&lt;script language="vbscript"&gt;
  function ValidateEmail(sEmail)
      set myExpression = new RegExp
      myExpression.pattern = "^(\w+\.)*(\w+)@(\w+\.)+([a-zA-Z]{2,4})$"
      If myExpression.test(sEmail.value) = True Then
          msgbox "Valid Email"
      Else
          msgbox "Invalid Email"
      End If
  End Function
  &lt;/script&gt;
  </code></pre>
  
  <p>We have already tried changing document mode programmatically as can be found on google by adding X-UA-Compatible  in web config .</p>
  
  <pre><code>&lt;system.webServer&gt;
          &lt;httpProtocol&gt; 
              &lt;customHeaders&gt; 
                  &lt;clear /&gt; 
                  &lt;add name="X-UA-Compatible" value="IE=9" / &gt; 
              &lt;/customHeaders&gt; 
          &lt;/httpProtocol&gt;
  &lt;/system.webServer&gt;
  </code></pre>
  
  <p>Though above code does not work as tag system.webServer does not work for 1.1 dot net framework. We also tried changing the machine config by adding a custom section.Though no success. :(</p>
  
  <p>Can you please provide us a solution by which vbscript can work on IE 10 browser for both browser modes IE 10 as well as IE 10 compatibility view?
  Thanks in advance.</p>