nsc_Visitor.getOS()

Returns the string containing the name and version of the visitor's operating system.

Example

$(function() {
    // Adding the chat widget initialization event listener
    // Prior to this moment the nsc_Visitor object is absent in the scope
    $(document).on('netroxinit', function(event, data) {
        if (!data.real) { // Not a status change but initialization in any status during page loading
  		alert("Your operating system: " + nsc_Visitor.getOS());
        }
    });
});

Demonstration of .getOS() through the Google Chrome developer tools console. Netrox SC live chat software.
Fig. 1 Demonstration of nsc_Visitor.getOS() through the
Google Chrome developer tools console

All rights reserved. Copyright © 2017 Netrox SC
Host CMS