Forum Discussion
Webpage/PDF Launching in New Tab Rather than New Window
Hello! I am very new to Storyline, just switched over from Captivate. I know of a simple JavaScript solution for opening URLs in a separate window. The JavaScript came from Paul Wilson, a Captivate expert, and it allows you to set the size of the new window. You can check out his YouTube tutorial here, beginning at minute 2:00 (https://youtu.be/Nfm4N4jTlsU).
window.open("https://YOUR-URL", "WINDOW-NAME/TITLE", "height=700,width=1024,left=25,top=25");
I've used this JS in Storyline on a link I created for the modern player topbar and it works great on MS Edge and Google Chrome. In addition to the JS, for my project I unchecked the "Launch player in new window (creates launch page)" that is located under the Browser Settings (Player > Other > Browser Settings). I unchecked this because I don't want the extra launch page. This also helps because the player will open in fullscreen mode, so when the link is clicked the file opens in a smaller window that is completely separate from the LMS window, and you can still see the player behind it. I hope this helps!