Hi Dojo,
I would like to know if it’s possible to have a solution where a single clickable shape can open two (or more) different links at once. I’ve tried using a URL data shape, but it seems that only supports one link. Would this be achievable with an Execute action, or is there another way to redirect and open multiple URLs from one click?
Thanks in advance!
Hi YahYa,
I do not believe we can directly support what you are looking for. This Dojo Questions explains more: LCA : Web component - Custom HTML and JavaScript - DataMiner Dojo
If you are able to follow this Custom HTML approach and create a custom web page, the following JacaScript HTML should work for you:
<!DOCTYPE html> <html> <head> <title>Open Multiple Links</title> <script> function openMultipleLinks() { window.open('https://www.google.com', '_blank'); window.open('https://www.youtube.com', '_blank'); window.open('https://www.wikipedia.org', '_blank'); } </script> </head> <body> <button onclick="openMultipleLinks()">Open Multiple Websites</button> </body> </html>