Since the irc-style chat scripts make you leave the chatroom when you close the page or go to some other url, to get this to work properly it would need some good ideas.
The only other solution I saw was a message log solution, something like our ingame chat, where the page would refresh once in a while. I don't find this solution very attractive either.