Forum Discussion
CorinaNedelea-b
2 years agoCommunity Member
Storyline item to open in new window from Rise
Hello everyone,
I'd like to kindly ask for your support with a project I am working on. I would like to include a Storyline 360 built content in a Rise 360 project. More importantly, I would like ...
JustinHarvey-ab
2 years agoCommunity Member
Hi Corina.
You should be able to use some JavaScript in your Storyline activity to detect if the content is running in an iframe or not.
The following code just opens the activity in a new window automatically, but it could be tweaked to display a button that says 'Open in New Window' or similar that triggers the window.open code.
if ( self !== top ) {
//It's in an iframe
window.open(window.location.href);
} else {
//It's not in an iframe
}
I've only tested this in console, but I imagine it would work using the 'Execute Javascript' trigger.
Hope that helps.