My Account | Buy CometChat

documentation

closeModule()

closeModule() function assists you to dynamically close a module (like Chatrooms, Facebook Fan Page etc.)

The API

The input parameter is the module’s short name i.e. the folder name of the module.

jqcc.cometchat.closeModule('MODULENAME');

Sample Code

A suggested use of this function is to close the Chatrooms module from your webpage.

<a href="javascript:void(0)" onclick="javascript:jqcc.cometchat.closeModule('chatrooms');">Close Chatrooms</a>