JAVA JAVASCRIPT

The JavaScript public method commands will allow you to create a different style, look and feel to your Java applet.

Example:

<form>
<INPUT type=button value="User Info" onClick="cr.output('/whois '+cr.getSelectedUser())">
</form>

Available JavaScript commands:

output(String str) - Send a string to the server, filtered through the output parser.
room(String room) - Join a new room.
doChat() - Show the chat view.
doRooms() - Show the rooms view.
doSession() - Show the options view.
doFloat() - Float the interface.
doEmbed() - Embed the interface in the web page if floating.
doShow(String name) - Show the named view (a room, a private message window, etc.).
getCurrentRoom() - Get current active room if being viewed.
getCurrentRoomTopic() - Get current active room's topic if being viewed.
getCurrentTarget() - Get current active window (either a room or private message) if being viewed.
getSelectedUser() - Get currently selected nickname (if any).
nick() - Get current nick.
insert(String text) - Insert text into the input bar of the active window