Search code examples
c#vbscriptinternet-explorer-11browser-feature-detection

Run VBScript in WebBrowser control feature emulation set to IE 11


We have a web browser application that needs to run in emulation mode of IE 11. IE 11 no longer supports VB Script, hence few legacy pages have broken.

Any ideas to get it working without much change. We will be retiring VB script usage soon .

But we need a short gap fix to get through with it now.


Solution

  • Fixed the above using meta compatibility tag in at start of html: <!DOCTYPE html> <meta http-equiv="X-UA-Compatible" content="IE=7"/>

    IE="8" works too, IE = 9 and 10 not so much. Hope it helps some one in the future.

    If you are ending up using a xhtml page please use:

    <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7"/>
    

    to know the difference about IE=7 and IE=EmulateIE7