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!
Did you tried this code only in jsfiddle?
If so, this is happening because this kind of virtual ambient works using iframe, which most browsers doesn't allow redirect for security reasons. Removing the 'target' attribute you'll get the following console error:
If you are working inside a iframe a good option is change to
target="_blank"otherwise it should work.