You can use AIM codes in hyperlinks to interact with the AIM client. Here is the list of AIM codes and how to use them:
To use a space
If you want to use a space be sure to place the + symbol where there would normally be a space.
Example: message=Hello,+this+is+a+test! Click Here
Opens a new IM window
aim:goim
Opens a new IM window with a screen name
aim:goim?screenname=SCREENNAME
Opens a new IM window with a screen name and a message
aim:goim?screenname=SCREENNAME&message=MESSAGE
Opens a chat room
aim:gochat?roomname=ROOMNAME
Opens the "Add Buddy" window with a screen name to add
aim:addbuddy?screenname=SCREENNAME
Opens the "Add Buddy" window with a screen and a group name to add
aim:addbuddy?screenname=SCREENNAME&groupname=GROUPNAME
To change someone's buddy icon when they click on the link
aim:buddyicon?src=BUDDYICONURL
To open or receive someone's shared files
aim:getfile?screenname=SCREENNAME