Is it possible to start the chat but without opening new window? I would like to have the chat inside a div on existing page. I don't want pre chat forms or anything like that. Just start the chat inside existing page. I'm using Deployment API to setup and initiate chat.
Yes it is possible to do so by using "startChatWithWindow()" from the Live Agent API. By passing in the name of an iFrame it will open up the chat within the iFrame instead of a new window.
The documentation can be found below.
this should probably work. include this in
onclick="liveagent.startChatWithWindow('xxxxxxxxxxxxx' , 'name_of_your_iframe')"
If using iFrame is not ideal (not mobile friendly), in the same page file, give it a window name first.
Open the chat or pre-chat form within the same window.