How do I get an embedded iframe to launch a new window from inside the survey? | XM Community
Skip to main content
Solved

How do I get an embedded iframe to launch a new window from inside the survey?

  • March 8, 2018
  • 2 replies
  • 47 views

Liz
Level 2 ●●
Forum|alt.badge.img+8
  • Level 2 ●●
  • 8 replies
So, I have a lengthy survey that delivers online training. Each lesson is delivered with Storyline files that are embedded in an iframe. Due to our internal website security, I need to be able to launch each lesson in a new window. I have tried altering the html and using java script, but neither have worked. Does anybody have a good example of how to make this happen? Thanks, Liz

Best answer by Liz

Hi TomG, I did try adding target="_blank" without success. I have since learned that our webpage security has set the X-Frame-Options to sameorigin, which is keeping the storyline files from displaying. As a workaround, I included a hyperlink directly to the storyline files, but this isn't my preferred solution. I am hoping to make a case for our IT security team to change the X-Frame-Options. Thank you for the suggestion! Liz

2 replies

TomG
Level 8 ●●●●●●●●
Forum|alt.badge.img+27
  • Level 8 ●●●●●●●●
  • 6084 replies
  • March 8, 2018
Have you tried adding target=“_blank” to your <a> tag?

Liz
Level 2 ●●
Forum|alt.badge.img+8
  • Author
  • Level 2 ●●
  • 8 replies
  • Answer
  • March 12, 2018
Hi TomG, I did try adding target="_blank" without success. I have since learned that our webpage security has set the X-Frame-Options to sameorigin, which is keeping the storyline files from displaying. As a workaround, I included a hyperlink directly to the storyline files, but this isn't my preferred solution. I am hoping to make a case for our IT security team to change the X-Frame-Options. Thank you for the suggestion! Liz