简体   繁体   中英

Web browser control default IE version

I have an Embedded browser in my WPF application. I have used Windows Forms Web browser control by using Windows forms host. I know that Web browser control is a wrapper around Internet Explorer Active x. Which version of IE does Web browser control takes by default. I read some where as it takes IE 6.0 and in some sites as IE 7 compatibility mode. I would also require to upgrade the version of IE in registry. Please clarify.

basically is IE7. may use below javacript to check IE version

alert('IE '+document.documentMode+'\n\n'+navigator.userAgent)"

you may set the browser emulation version by registry of FEATURE_BROWSER_EMULATION.

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_BROWSER_EMULATION]
"myprogram.exe"=dword:00002af8

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_BROWSER_EMULATION]
"myprogram.exe"=dword:00002af8

for details, may refer to https://docs.microsoft.com/en-us/previous-versions/windows/internet-explorer/ie-developer/general-info/ee330730(v=vs.85)?redirectedfrom=MSDN

or "A Brief Guide to FEATURE_BROWSER_EMULATION" at https://blog.malwarebytes.com/101/2016/01/a-brief-guide-to-feature_browser_emulation/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM