Image as link - odd behavior
Posted: Fri Oct 26, 2018 12:33 am
Here is my DITA code to turn an image into a link.
<xref
href="https://www.google.com"
format="html"
scope="external">
<image
href="images/google-play-badge.png"
id="image_oqh_nfz_4fb"/>
</xref>
In the generated HTML, clicking the image opens the link in a new tab/window, which is what I want. But, in the current window, it opens a large version of the image. I traced this back to a javascript event listener that is added by jquery-3.1.1.min.js.
How can I disable the behavior of opening a large tab in the current window, while maintaining the functionality of opening the link in a new tab?
Thanks.
<xref
href="https://www.google.com"
format="html"
scope="external">
<image
href="images/google-play-badge.png"
id="image_oqh_nfz_4fb"/>
</xref>
In the generated HTML, clicking the image opens the link in a new tab/window, which is what I want. But, in the current window, it opens a large version of the image. I traced this back to a javascript event listener that is added by jquery-3.1.1.min.js.
How can I disable the behavior of opening a large tab in the current window, while maintaining the functionality of opening the link in a new tab?
Thanks.