In my code, after clicking on the link, I open the pdf file in a new tab, but after the second click, if this file is already open, instead of opening it in a new tab, I want to redirect this file to an open tab.
My code is:
<span style="margin-left:10%;"><a href="image/Eng_Pamphlet.pdf" target="_blank">Broucher</a></span>'
As the tab above shows, I set the target attribute "_blank", so it always opens the link in a new tab. But I want the first time it is redirected only to the first open tab.
html
Sushant
source share