internet explorer - How do I set "user agent string" using code in IE -


my applet gets loaded in ie 11 default behavior. when use meta tag , change render in ie 10, not load properly. reason being meta tag has changed document mode of ie 10 still “user agent string” pointing ie 11. when manually changed “user agent string” ie 10 works fine again.

so there way specify user agent string document mode in html? in advance!

no. there no public api changing ie user-agent (ua) string @ run-time.

if use emulation tab of f12 tools, can temporarily change user-agent string, that's temporary solution, ua string resets when page refreshes.

the ua string change when switch enterprise mode ie, however, result isn't entirely under control. because result showcases ie8-era ua string, may not give need.

at 1 time, change ua string through registry, it's unclear whether still works. (that article first written ie7 , later superseded this article.)

bottom line: best way ensure results you're looking update solution no longer relies on user-agent sting, instead uses feature detection or other modern approaches--a message ie team has been advocating since days of ie8.


Comments

Popular posts from this blog

Command prompt result in label. Python 2.7 -

javascript - How do I use URL parameters to change link href on page? -

amazon web services - AWS Route53 Trying To Get Site To Resolve To www -