Chat on the web has been implemented mostly using Java applets. Another rudimentary web chat method was dong by automatically refreshing the web page. ActiveX was also an option for implementing chat on the web.
AJAX now is a new contender to the mix and enters as an interesting method for enabling chat on the web. Here is a very simple AJAX chat room created with PHP code.