Computer Configuration > Administrative Templates > Microsoft Edge > Content settings
Both
HKLM\Software\Policies\Microsoft\Edge
Set whether websites can run JavaScript. You can allow it for all sites ('AllowJavaScript') or block it for all sites ('BlockJavaScript'). If you don't configure this policy, all sites can run JavaScript by default, and the user can change this setting. Policy options mapping: * AllowJavaScript (1) = Allow all sites to run JavaScript * BlockJavaScript (2) = Don't allow any site to run JavaScript Use the preceding information when configuring this policy.