VBScript support in Internet Explorer 11

internet explorerinternet-explorer-11vbscript

I tried the following HTML page with two scripts:

<html>
  …
  <body>
    <script type="text/javascript">
      alert ('Javascript');
    </script>
    <script type="text/vbscript">
      msgbox "Vbscript"
    </script>
  </body>
</html>

On Windows 8.1 preview + Internet Explorer 11, the JavaScript worked, the VBScript did not.

On (Windows 8 + IE10), (Windows 7 + IE9), the two scripts worked.

I did not find any information about the end of VBScript support in Internet Explorer 11, did you?

Best Answer

The IE team has been trying to retire VBScript for years.

http://msdn.microsoft.com/en-us/library/windows/apps/Hh700404.aspx indicates that support was removed from the ExecScript API. http://msdn.microsoft.com/en-us/library/ie/dn384057(v=vs.85).aspx explains that it's removed from IE11 Edge mode in the Internet Zone.

If you add the following to your HEAD tag, your VBScript will run:

<meta http-equiv="x-ua-compatible" content="IE=10">
Related Topic