Forum Discussion
Does Storyline allow users to right-click hyperlinks to bring up the browser context menu?
- 6 months ago
You are right that the Storyline player doesn't treat text links like traditional HTML anchor tags as such, so any interactivity you want to have will all need to be managed on the slide as triggers.
If you want to have the web link copied to the user's device clipboard for example you could set up an Execute JavaScript trigger when the element is right-clicked, and use the following JS:
async function copyTextToClipboard(textToCopy) { // Check if Clipboard API is available and the writeText method exists if (!navigator.clipboard || !navigator.clipboard.writeText) { console.error("Clipboard API (writeText) not available."); return false; } try { // Attempt to write the text to the clipboard await navigator.clipboard.writeText(textToCopy); console.log("Copy Successful"); return true; } catch (err) { console.error("Failed to copy text: ", err); return false; } } copyTextToClipboard("ADD THE WEB ADDRESS HERE");
FYI: There may be a bug with the Open URL trigger that’s worth noting. If you right-click a link and then click anywhere else on the slide, the link may open prematurely, even before it’s actually left-clicked.
- StevenBenassi6 months agoStaff
Hi Nedim!
Thank you for pointing this out!
I was able to replicate the same behavior on my end in a new Storyline file. I'd like our support engineers to have a closer look at this issue, so I've opened a support case on your behalf.
They should be connecting with you via e-mail, once we have more insight to share!
Related Content
- 5 months ago
- 8 months ago
- 9 months ago