Recognize the visitor's country, identified by the Netrox SC live chat software based on the IP address.


$(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 country - " + nsc_Visitor.getCountry());

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

All rights reserved. Copyright © 2021 Netrox SC
Host CMS