Open the embedded window using a text link or custom element/graphic:
lhnJsSdk.openHOC(); // Will open to the last active tab, or on the first open to
your custom tab if you have one, otherwise your first tab
lhnJsSdk.openHOC('c'); // Will open to the chat window tab
lhnJsSdk.openHOC('t'); // Will open to the ticket form tab
lhnJsSdk.openHOC('kb'); // Will open to the knowledge lookup tab
lhnJsSdk.openHOC('kb', {search_term: "some text"}); // Will open to the knowledge lookup
tab and search the passed term
lhnJsSdk.openHOC('cb'); // Will open to the callback form tab
lhnJsSdk.openHOC('cu'); // Will open to your custom tab
The tab you pass always wins, so you can decide which tab a visitor lands on when they open the window from your own link or button. The system name works in place of the short code as well ('chat', 'ticket', 'knowledge', 'callback', 'custom'). To choose the tab visitors land on when they open the window from the LiveHelpNow button, set the defaultSystem option instead.