Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Hyperlink and Open in New Window

  • boshra.m
  • boshra.m's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
3 years 1 month ago - 3 years 1 month ago #226589 by boshra.m
Hyperlink and Open in New Window was created by boshra.m
Please help us help you and fill where relevant:
Your LimeSurvey version: LimeSurvey Cloud Version 5.3.6
Own server or LimeSurvey hosting:
Survey theme/template: Fruity
==================
Hello,

I was wondering if anyone knew of an updated way to make sure that a pdf hyperlink opens in a NEW tab or window? Currently, it opens in the same window. I have tried putting this:
target="_blank"

in the question source, cutsom.css, and theme.css (seperately) and none of this works. 

Thank you very much. 
Last edit: 3 years 1 month ago by boshra.m.

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 4 weeks ago #226591 by Joffm
Replied by Joffm on topic Hyperlink and Open in New Window
Hi,
I do not see any problem using the "normal" link with the target attribute
[url] www.w3schools.com/tags/att_a_target.asp [/url]

Like this
Code:
<a href="https://www.myServer.de/myFolder/myFile.pdf" target="_blank">Click to open</a>

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The following user(s) said Thank You: boshra.m

Please Log in to join the conversation.

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 4 weeks ago #226600 by tpartner
Replied by tpartner on topic Hyperlink and Open in New Window

I have tried putting this: target="_blank" in the question source, cutsom.css, and theme.css (seperately) and none of this works.

This is an attribute for the <a> element, it is not CSS.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The following user(s) said Thank You: boshra.m

Please Log in to join the conversation.

  • boshra.m
  • boshra.m's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
3 years 4 weeks ago #226618 by boshra.m
Replied by boshra.m on topic Hyperlink and Open in New Window
Hello,

Ah I see what mistake I made now. Thank you very much!

Please Log in to join the conversation.

Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose