Forum Discussion
Webpage/PDF Launching in New Tab Rather than New Window
Hi!
I have a question regarding browser windows, and thought maybe somebody here might have a few suggestions.
I've put together a short course for a client in Storyline 360, to be hosted on Cornerstone, likely launched using either Chrome or IE. The module itself is fine and works/records completions perfectly. However, as an important part of the training module, we need to launch a page in Google Drive, as well as a PDF from the Resources tab, from the training module, and this is where we've been running into an issue.
I have a slide set up to launch the Google Drive page automatically in a new browser window (Display in Slide doesn't work well for the Google Drive page or the PDF). However, all this does is open a new tab next to the Cornerstone launch page (not the training window). This is confusing, because Cornerstone launches the training module in a new window entirely, and users so far are having a difficult time returning to the training because it looks to them like the module closed when the new page opened. It's the same problem with the PDF in the Resources tab.
(I should note that the training module window stays open when this happens, so users can click back to it by using Alt + Tab or hovering over the task bar at the bottom of their computer screen. However, this is not intuitive or very user friendly.)
Has anybody else had this issue? Is there a way to resolve it without having to adjust individual user settings? Is it possible to get the Google Drive page and PDF to open in a new, minimized window and NOT a new tab? Because we're launching this company-wide, it's not practical to adjust each user's browser settings. Any suggestions would be most welcome! Thank you!
Hi Anna,
There isn't a setting in Storyline to determine if a link will open in a new window vs. a new tab, as all those options are browser and user specific.
Hopefully folks in the community can share what they've done to handle a similar situation.
- LukeBarrett1Community Member
Hi there, I'm having an identical issue with one of my recent courses. I had a similar issue with Chrome a while back, and a community member kindly provided me with some javascript that fixed the problem. Unfortunately, using that same javascript with this course doesn't seem to resolve the issue. I've included a short video to illustrate the issue which is exactly as Anne describes.
- MirkoBrandiCommunity Member
Hi Luke,
could you share the javascript code to fix the issue and open the PDF in a new window?
I have the same problem described by Anna ( "However, all this does is open a new tab next to the Cornerstone launch page") with also this critical issue: when you close the PDF tab in the launch page, also the training module in the new window is closed.
So I hope that opening the PDF in a new window maybe could solve this strange behaviour.
Thanks- LukeBarrett1Community Member
Hi Mirko,
File is attached. Apologies if I'm telling you something you already know,
but to launch the script, you just need to add an 'Execute javascript'
trigger and insert the code :-)
Hi Luke,
I wanted to let you know I didn't see an attachment here. If you're responding via email and trying to attach those won't post to the ELH Community. You'll want to visit this page and upload using the Add Attachment button.
- LukeBarrett1Community Member
Thanks for the heads-up Ashley. Let's try this again. File attached, Mirko :-)
- MirkoBrandiCommunity Member
Really thanks Luke.
No problem, Luke! Thanks for coming back to share.
- EricVanbuskirk-Community Member
Ashley: Are you able to point us to the file and location where you plug this code in?
- JenniferSnyder-Community Member
I was glad to see a solution to opening the resources in a new window. However, I am a big ignorant when it comes to complex programming - it's complex in my eyes, anyway.
Can you tell me where I can plug in the javascript solution?
- NataliaLeagueCommunity Member
Hi! Interested in where to insert the javascript solution as well - specifically the url. I found the execute java script trigger but i can't figure out where to insert the url within the code
Greetings, Eric!
I'm thinking Luke used the Execute JavaScript trigger and pasted the code into the script window:
Related Learning 📖