VA - how to close chatwindow in onload of page

anusha reddy v1
Tera Contributor

hi,

When Live agent is not available, we are sending a message as below
[
Please ask your question <a href="/sp?id=support_case" target="_blank" rel="noopener noreferrer">here</a>. "

]
this is existing code in bot response message. It is opening support case and opening chat window also. how to close chatbot window when user clicks on support case link and open only page?
any suggestions please.

1 REPLY 1

Medi C
Giga Sage

Hello @anusha reddy v1,

 

Are you on ServicePortal? If so, could you please try:

<a href="#" onclick="window.parent.VAWebClientAPI.close(); window.location='/sp?id=support_case'; return false;" target="_self">here</a>

 


Thanks & Best regards,
Medi