Embedding Chat

To embed a Twitch chat window in your Web site, use this expression:

1
2
3
4
5
6
7
<iframe frameborder="<frameborder width>"
        scrolling="<scrolling>"
        id="<channel>"
        src="<src url>"
        height="<height>"
        width="<width>">
</iframe>

Parameters

Name Type Description
frameborder integer Width of the chat-window border, in pixels
height integer Height of the chat window, in pixels
id string Name of the channel to which the chat belongs. This refers to the channel broadcaster.
scrolling boolean Specifies whether scrolling in the chat window is supported (yes or no)
src string Chat window URL
width integer Width of the chat window, in pixels

Example

1
2
3
4
5
6
7
<iframe frameborder="0" 
        scrolling="no" 
        id="chat_embed" 
        src="http://www.twitch.tv/hebo/chat" 
        height="500" 
        width="350">
</iframe>