+7
Answered

Open links in new tab

Bryn Pickering 8 year бұрын updated by Adam Rego Johnson 1 year бұрын 6

Annoyingly have to use BibBase via iframe due to managed web service won't allow external scripts. In this situation, if someone clicks on any links in the iframe (to see a paper on BibBase or external site) it loads the result within the iframe.


I know that if "target="_blank"" is placed within the html for a link it will open in new tab, but control of that is on the BibBase side of things. Is there any way of editing that or having some optionality in BibBase to allow for it?

Thanks!

*Edited topic when I realised it was the case for all links in iframe

It's been three years and still no answer !?

-1
Answered

Sorry, no that is not currently possible. We *strongly* recommend against using iframes. The external script method should work everywhere because that is how almost all web pages work these days: they pull in scripts from other places, not just the local server where the HTML is hosted.

Hey Bryn,

Any chance that you found a working workaround? I am having the same issue - a JavaScript from BibBase that is then used in an iframe (Wix).

Thanks!

Nir

Is there any solution to this? I embed via JavaScript, not iFrames, but do not know of a way to have all links be opened in a new tab, which would be ideal.

Thanks!

According to https://developer.mozilla.org/en-US/docs/Web/HTML/Element/base#attr-target you can add

<base target="_blank" />

to the head of your HTML document to make all links open in a new tab. This would then apply to links created by BibBase as well. Does that work for you?

Hi Christian, I've passed this along to our website developer am still waiting for a response. Thank you!