Hosting the Windows Live Messenger IM Control

The Windows Live Messenger IM Control enables Web site owners to facilitate instant messaging with visitors to their Web site. This topic shows you how to embed the control directly on a Web page by pasting a block of auto-generated HTML code into your Web page.

To host the Windows Live IM Control
  1. Open your Web browser, and navigate to: http://settings.messenger.live.com/applications/WebSettings.aspx.

  2. Select the Allow websites to see your Messenger status and send you messages check box and click Save. This will let other users see your Messenger status and send you messages.

  3. Under Web Settings, click Create HTML.

  4. Select the format for the control (IM window, Button, or Status icon), the size for the control, and the color scheme to use.

  5. At the bottom of the page, HTML code is generated. Copy the HTML and paste it into your Web page.

Important:
When you use HTML to show your Messenger status, it becomes possible for other users to copy the HTML code and show your status elsewhere on the Web.

The HTML that is generated varies depending on the options that were selected. The IM window uses an iframe tag, the button uses a JavaScript and a div tag, and the icon uses an anchor tag.

The following example shows an example of the HTML that is generated for the IM window.

<!-- IM window HTML -->
<iframe src="http://settings.messenger.live.com/Conversation/IMMe.aspx?invitee=12BACD345678@apps.messenger.live.com&mkt=en-US" 
width="300" height="300" style="border: solid 1px black; width: 300px; height: 300px;" frameborder="0"></iframe>
Show: