Frubil JavaScript Device Detection

Free JavaScript Device Detection - The system recognises more then 600 clients, 170 operating system and 31 000 devices.

HTML

<script src="https:////js.frubil.info/"></script>
<!-- External resources:  https://js.frubil.info/ -->
<!-- API reference: https://frubil.info/api_reference.html -->

JavaScript

if(FRUBIL.status.value == 1) {
  document.write('Class: ' + FRUBIL.client.class + '<br />');
  document.write('Name: ' + FRUBIL.client.name + ' ' + FRUBIL.client.version + '<br />');
  document.write('OS: ' + FRUBIL.client.os + '<br />');
  document.write('Device class: ' + FRUBIL.device.class + '<br />');
  
  if(FRUBIL.client.isOs('Windows XP', 'Windows 98')) {
  	document.write('OS is Windows XP or Windows 98 <br />');
  }
  else {
  	document.write('OS is not Windows XP or Windows 98 <br />');
  }
  if(FRUBIL.device.isClass('Game console')) {
  	document.write('Device class is Game console <br />');
  }
  else {
  	document.write('Device class is not Game console <br />');
  }
  
}