← view more API documentation

api.box.expand

Expands the chatbox.

Examples

To make your own "click to chat" button, just add this to a link on your page:

document.getElementById('click-to-chat').onclick = function() {
    olark('api.box.expand');
}

Discussion

Feel free to propose good uses for this method, or even drop us some suggestions for improvement! You can also join our mailing list to collaborate with other developers and get updates from us.