I have an old webpage with VBScript. We are testing edge browser compatibility in ie mode.
Computer Configuration > Administrative Templates > Windows Components > Internet Explorer > Internet Control Panel > Security Page > Internet Zone
I allowed VBScript to run in Internet Explorer settings, but VBScript doesn't seem to work.
Does edge ie mode support VBScript?
CodePudding user response:
You can execute VBScript in Edge IE mode if you set IE mode Compatibility mode to IE10.
CodePudding user response:
Yes, Edge supports VBScript in IE mode (even in Windows 11) because, as stated by @user692942, it's really iexplore.exe that renders the page using MSHTML, as long as the compatibility mode is set correctly.
If you don't set up a compatibility mode site list, as per the answer from @Yu Zhou, you can also just set the compatibility mode in your old web page. For example:
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=10">
</head>
<script language="VBScript">
Sub Greet
MsgBox "Hello"
End Sub
</script>
<input type=button value='Click for greeting' onclick=Greet()>
</html>
In addition to configuration via GPO, the above page will display in Edge (via iexplore.exe) on any PC with the following steps:
- In Edge Settings go to Default browser
- For Allow sites to be reloaded in Internet Explorer mode select Allow
- Reload Edge if prompted to do so
- From the ... menu select Reload in Internet Explorer mode
- When prompted, click Allow blocked content
CodePudding user response:
The short answer is No.
Basically, both Legacy Edge (EdgeHTML engine) and its successor Edge (which harnesses the Chromium Project, also known as "Edgium") are not based on the MSHTML engine used by the Internet Explorer browser (IE 11 and below) which supported ActiveX technologies which included Active Scripting languages like VBScript and JScript (IE 10 and below).
As pointed out in the comments, it is possible to run IE 11 in IE 10 mode and open pages containing VBScript.