How to Link Out to a Blank Empty New Tab | XM Community
Skip to main content
Question

How to Link Out to a Blank Empty New Tab

  • May 28, 2025
  • 3 replies
  • 61 views

Forum|alt.badge.img+2
  • Level 1 ●
  • 11 replies

Hi,

 

I need to hyperlink text that will open in a new tab but also be blank. I tried editing the HTML to add <a href="about:blank" target="_blank">. But Qualtrics removes my code when I exit out of the question.

 

I’m not open to linking out a website, I need to link out to a new tab and a blank page.

 

Any help would be greatly appreciated!!!

 

Thanks in advance!

3 replies

Forum|alt.badge.img+2
  • Author
  • Level 1 ●
  • 11 replies
  • May 28, 2025

I also tried <a href="#" target="_blank"> and Qualtrics lets that code stay, but when taking the survey if you click that link it opens a copy of the survey at your current position in a new tab which would be bad for tracking purposes.

 

And I tried <a href="javascript:window.open('about:blank')" target="_blank"> which works on desktop but not on mobile.

 


Forum|alt.badge.img+21
  • 319 replies
  • May 29, 2025

Hi ​@jmc02 ,

 

Your default code using about:blank seems to work.

Did you try to add text to it to prevent Qualtrics from removing the code?

<a href="about:blank" target="_blank" rel="noopener noreferrer">
/*This "Open Blank Tab" is the text that will appear in your question. Removing it will cause Qualtrics to remove the code.*/
Open Blank Tab
</a>

 


Forum|alt.badge.img+2
  • Author
  • Level 1 ●
  • 11 replies
  • May 29, 2025

Hi ​@jmc02 ,

 

Your default code using about:blank seems to work.

Did you try to add text to it to prevent Qualtrics from removing the code?

<a href="about:blank" target="_blank" rel="noopener noreferrer">
/*This "Open Blank Tab" is the text that will appear in your question. Removing it will cause Qualtrics to remove the code.*/
Open Blank Tab
</a>

 

Yes, there is text surrounding the link. Qualtrics will still remove the code if I click into the box after I add the initial code.

Additionally, this doesn’t allow certain mobile browser users to easily complete the survey.