I have a popover with focus-trigger and a link in the popover.
Html:
<div class="tree">
<div class="html-popup">
Popup text <a href="http://www.google.com" target="_top">Link somewhere</a>
</div>
<a tabindex="0" role="button" data-container="body" data-toggle="popover" data-trigger="focus" data-placement="bottom">
Text that has a popover
</a>
</div>
JavaScript:
$('.tree [data-toggle="popover" ]').popover({
html: true,
content: function () {
return $(this).prev().html();
}
});
Here is a live sample: JSFiddle
In Chrome the link opens before the popover closes but in IE and Firefox it just closes the popover.
I have to support IE9 and reasonably new versions of Firefox. How can I make the link open before the popover closes?
Thanks!
_top
. It doesn't work in Chrome neither. It works as a target_blank
, so it is easier to apply such a target and gets the same in any browser. No? – Consentaneous