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");
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");
- PaulGlenn6 months agoCommunity Member
Thanks so much for your reply. We're really looking for the browser context menu that allows a user to copy or save the link (as well as choose to open in a new tab/window, or access extension functionalities like Helperbird, Milanote, etc.) If I'm reading you right, it sounds like currently this just isn't possible with Storyline?
Related Content
- 5 months ago
- 8 months ago
- 9 months ago