IsKioWare JavaScript Function
How to determine if KioWare is rendering your page content:
Copy to Clipboard |
View Code In Action
|
Back
Code:
<script type="text/javascript">
function IsKioWareClassic()
{
// IE-based
try
{
if(window.external.getKioProperty('SVNRev')) return true;
}
catch(err){}
return false;
}
function IsKioWare4Windows()
{
// Chromium Embedded Framework (CEF)-based
try
{
if (KioApp.GetRev() && KioUtils.GetSystemUptimeMs()) return true;
}
catch(err){}
return false;
}
function IsKioWare4Android()
{
// Android System WebView-based
try
{
if (KioWareUtils.getDeviceInfo()) return true;
}
catch(err){}
return false;
}
function IsKioWare()
{
// Is any KioWare Product
if (IsKioWareClassic()) return true;
if (IsKioWare4Windows()) return true;
if (IsKioWare4Android()) return true;
return false;
}
document.write('Is Running in KioWare Classic: ' + IsKioWareClassic() + '<br />');
document.write('Is Running in KioWare for Android: ' + IsKioWare4Android() + '<br />');
document.write('Is Running in KioWare for Windows: ' + IsKioWare4Windows() + '<br />');
alert('Is Running under KioWare: ' + IsKioWare());
</script>