on ‎2020 Feb 19 3:10 PM
Hi,
I'm building a chatbot with web chat and web client. My chatbots are using hyperlinks in the message via Markdowns. When someone clicks the links, it opens in a new tab. I can't have that. Someone could have 10 different tabs open by clicking the links.
How would I set this up so that each time the link is clicked, the page opens in the same tab instead of opening a new tab?
Thanks and I look forward to your answer!
Request clarification before answering.
webchat.txt. This didn't work for me
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi freelegal1 ,
Please Download and save this file as JS --> webchat.txt in your local directory where your html page is present. Inside HTML code, do the following changes
<script src="js/webchat.js""<script src="https://cdn.cai.tools.sap/webchat/webchat.js" It worked for me. Let me know whether it worked.
Thanks,
Shanmugam
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Shanmugam ,
Thanks for the reply. I'll try and let you know. I have another question. I would like to embed the chatbot on the webpage itself instead of having a popup chatbot. Essentially, embedding the chatbot like any other element on the page. I've tried using <iframe> but it doesn't work. It only shows code in the iFrame window. Will loading the webchat.txt as .js cure that? Do you or anyone else have any suggestions?
Thanks a lot,
Fred
Thanks for the comment. True, but I'm adding the bot to each page and so when clicked, the page changes and the bot reappear with the discussion in the same place. Therefore, each time a linked is clicked, the page changes and a bot window reappears --- all in one window/tab.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 9 | |
| 7 | |
| 6 | |
| 4 | |
| 3 | |
| 3 | |
| 3 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.