I'm making a webpage in PHP and I want to show a user different contents when he accesses the page in IE desktop mode and IE modern UI mode on Windows 8.
Can user-agent do this? If not, are there any possible solutions? Thank you.
I'm making a webpage in PHP and I want to show a user different contents when he accesses the page in IE desktop mode and IE modern UI mode on Windows 8.
Can user-agent do this? If not, are there any possible solutions? Thank you.
Check with Javascript if ActiveX enabled (Metro doesn't allow any activex content, but desktop IE can )
function isActivexEnabled() {
var supported = null;
try {
supported = !!new ActiveXObject("htmlfile");
} catch (e) {
supported = false;
}
return supported;
}
and send that information to PHP script through Ajax for example