onChatClear ()

The event is trigged after the visitor has cleared the chat using the corresponding chat widget tool.

Examples

  1. Using jQuery
    $(document).on("netroxchatclear", function(event) {
        // Your actions pertaining to the visitor's clearing of the chat
        alert('Now your wife won't know you spent ' 
        + money + ' on ' + category + '!!!');
    });       
  2. Using the nsc_API object
    nsc_API = { /* ... */ };
    
    nsc_API.onChatClear = function() {
        // Your actions pertaining to the visitor's clearing of the chat
        alert("Now your wife won't know you spent "
        + money + ' on ' + category + '!!!');
    };        

All rights reserved. Copyright © 2017 Netrox SC
Host CMS