Board Thread:Support Requests - Getting Technical/@comment-3444778-20130117221452

Hi! I'm a bit of a newbie with JavaScript, and am not really familiar with the code used in chat. I'm trying to do two main things: call a function every time a message from another used is received, and set the text of the latest message as a variable. The second part will be contained within the function that is called, but I'm not sure how to go about doing either. Any help on this would be much appreciated. Thanks in advance!  