Hi,
Use this Java Script:
AttachChatEvent("MESSAGE",handleMessage);
function handleMessage(name,type,info1,info2)
{
//name should be "MESSAGE"
//type should be "NEW"
var msg=info1;
if(msg.Type=="USER")
{
//use :
//msg.Sender.UserId,msg.Sender.DisplayName
//msg.Target.UserId,msg.Target.DisplayName
//msg.Html,msg.Text..
}
}
Regards,
Terry