I want customer chat in the same window rather it open in new window .I don't want to open in separate window it will happen in same window . like popup chat window

1 Answer 1


Modifying the chat button onclick method by adding ", 'mywindow'" in this line:

           liveagent.startChatWithWindow('XXXX0000000XXXX', 'mywindow');

and add "window.name = "mywindow";" in the deployment like this:

    <script type="text/javascript">
        window.name = "mywindow";
        liveagent.init('https://xxxx.salesforceliveagent.com/chat', 'xxxx0000000xxxx', '00D40000000xxxx');

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .