Allows for recognizing the visitor's city, 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("You are from " + nsc_Visitor.getCity());

Demonstration of .getCity() through the Google Chrome developer kit console
Fig. 1 Demonstration of nsc_Visitor.getCity() through the
Google Chrome developer tools console

All rights reserved. Copyright © 2021 Netrox SC
Host CMS