Menu
Welcome
Quick start guide
Installing on your site
Connecting as operator
Operator commands
API
Operator settings
Roster variables and macroses

Sitehelp API - onChatWindowOpen

API :: onChatWindowOpen


Event fired once chat window opened (by user or by API)
SITEHELP_API.onChatWindowOpen(
   callback  // function will be called once chat window opened (by user or by API)
);


Example:

SITEHELP_API.onReady (
	function () {
		SITEHELP_API.onChatWindowOpen(
			function () {
				alert('chat window just opened and will be closed right now');
				SITEHELP_API.closeChatWindow();			// :-)
			};
		);
	};
);

Copyright 2011-2014 by Sitehelp.im.