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

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

  • 8 March 2018
  • 2 replies
  • 21 views

Userlevel 2
Badge +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
icon

Best answer by Liz 12 March 2018, 17:47

View original

2 replies

Userlevel 7
Badge +27
Have you tried adding target=“_blank” to your <a> tag?
Userlevel 2
Badge +8
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

Leave a Reply